People who are not logged and not register don't necessarily think to click on connect to register
here is a way to help them !
##############################################################
## MOD Title: Add a link to register
## MOD Author: Gloupin <olivier.blazy@wanadoo.fr> (Olivier B) **Broken link**
## MOD Version: 1.0.0
##
## Installation Level: (Very Easy)
## Installation Time: it depends of you, around 5 min Minutes
## Files To Edit: category.php, language/"each lang you use".php
## Included Files: (n/a)
##############################################################
## Author Notes: Don't had a security hole :-)
##
##############################################################
## MOD History:
##
## 2003/12/23 Version 1.0.0
## - First version
##
##############################################################
## Before Adding This MOD To Your Gallery, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ ACTION ]----Open category.php--and find -
#
if ( $page['cat'] == 'search' )
{
$url.= '&search='.$_GET['search'].'&mode='.$_GET['mode'];
}
$vtp->setVar( $handle, 'summary.url', add_session_id( $url ) );
$vtp->setVar( $handle, 'summary.title', $lang['hint_customize'] );
$vtp->setVar( $handle, 'summary.name', replace_space( $lang['customize'] ) );
$vtp->closeSession( $handle, 'summary' );
}
#
#-----[ ACTION ]-----Add after-----------------------
#
else
{
$vtp->addSession( $handle, 'summary' );
$vtp->setVar( $handle, 'summary.url', './register.php' );
$vtp->setVar( $handle, 'summary.title', '' );
$vtp->setVar( $handle, 'summary.name', replace_space( $lang['menu_sucr']));
$vtp->closeSession( $handle, 'summary' );
}
#
#-----[ ACTION ]--------Close, save and upload this file-
#
#
#-----[ ACTION ]----Open yourlang.php--and find ----
#
$lang['menu_login'] =
#
#-----[ ACTION ]----Add before----------------------------
#
$lang['menu_sucr'] = 'suscribe in your language';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
very easy isn't it ?
Offline
Great ! thanks ! :-)
It didn't work for me so i make some modifications.
Thanks Gloupin :)
<quote>##############################################################
## MOD Title: Add a link to register
## MOD Author: Gloupin <olivier.blazy@wanadoo.fr> (Olivier B) http://www.oblazy.com (1.0.0)
## MOD CoAuthor: Void <void@voidzone.com> (MK) http://www.voizone.com (1.0.1)
## MOD Description: Help visitor :-)
## MOD Version: 1.0.1
##
## Installation Level: (Very Easy)
## Installation Time: it depends of you, around 5 min Minutes
## Files To Edit: category.php, language/"each lang you use".php
## Included Files: (n/a)
##############################################################
## Author Notes: Don't had a security hole :-)
##
##############################################################
## MOD History:
##
## 2003/12/23 Version 1.0.0
## - First version
## 2003/07/03 Version 1.0.1
## - Make it work with PhpMyGallery v1.3.2
##############################################################
## Before Adding This MOD To Your Gallery, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ ACTION ]----Open category.php--and find -
#
if ( $page['cat'] == 'search' )
{
$url.= '&search='.$_GET['search'].'&mode='.$_GET['mode'];
}
$vtp->setVar( $handle, 'summary.url', add_session_id( $url ) );
$vtp->setVar( $handle, 'summary.title', $lang['hint_customize'] );
$vtp->setVar( $handle, 'summary.name', replace_space( $lang['customize'] ) );
$vtp->closeSession( $handle, 'summary' );
}
#
#-----[ ACTION ]-----Add after-----------------------
#
// register link
$vtp->addSession( $handle, 'summary' );
$vtp->setVar( $handle, 'summary.url', add_session_id('./register.php') );
$vtp->setVar( $handle, 'summary.title', $lang['hint_register'] );
$vtp->setVar( $handle, 'summary.name', replace_space( $lang['ident_register']));
$vtp->closeSession( $handle, 'summary' );
}
#
#-----[ ACTION ]--------Close, save and upload this file-
#
#
#-----[ ACTION ]----Open yourlang.php--and find ----
#
$lang['hint_search'] =
#
#-----[ ACTION ]----Add before----------------------------
#
$lang['hint_register'] = 'subscribe in you language, in french : cliquer ici pour vous enregistrer et mettre des commentaires';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
</quote>
Have Fun
It didn't work for me so i make some modifications.
Thanks Gloupin :)
##############################################################
## MOD Title: Add a link to register
## MOD Author: Gloupin <olivier.blazy@wanadoo.fr> (Olivier B) http://www.oblazy.com (1.0.0)
## MOD CoAuthor: Void <void@voidzone.com> (MK) http://www.voizone.com (1.0.1)
## MOD Description: Help visitor :-)
## MOD Version: 1.0.1
##
## Installation Level: (Very Easy)
## Installation Time: it depends of you, around 5 min Minutes
## Files To Edit: category.php, language/"each lang you use".php
## Included Files: (n/a)
##############################################################
## Author Notes: Don't had a security hole :-)
##
##############################################################
## MOD History:
##
## 2003/12/23 Version 1.0.0
## - First version
## 2003/07/03 Version 1.0.1
## - Make it work with PhpMyGallery v1.3.2
##############################################################
## Before Adding This MOD To Your Gallery, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ ACTION ]----Open category.php--and find -
#
if ( $page['cat'] == 'search' )
{
$url.= '&search='.$_GET['search'].'&mode='.$_GET['mode'];
}
$vtp->setVar( $handle, 'summary.url', add_session_id( $url ) );
$vtp->setVar( $handle, 'summary.title', $lang['hint_customize'] );
$vtp->setVar( $handle, 'summary.name', replace_space( $lang['customize'] ) );
$vtp->closeSession( $handle, 'summary' );
}
#
#-----[ ACTION ]-----Add after-----------------------
#
// register link
$vtp->addSession( $handle, 'summary' );
$vtp->setVar( $handle, 'summary.url', add_session_id('./register.php') );
$vtp->setVar( $handle, 'summary.title', $lang['hint_register'] );
$vtp->setVar( $handle, 'summary.name', replace_space( $lang['ident_register']));
$vtp->closeSession( $handle, 'summary' );
#
#-----[ ACTION ]--------Close, save and upload this file-
#
#
#-----[ ACTION ]----Open yourlang.php--and find ----
#
$lang['hint_search'] =
#
#-----[ ACTION ]----Add before----------------------------
#
$lang['hint_register'] = 'subscribe in you language, in french : cliquer ici pour vous enregistrer et mettre des commentaires';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Have Fun
Please can someone erase my last post ;) thanks
Last edited by void (2004-07-03 23:22:18)
Offline
Thank you :)
Was for an older version
Offline