forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: itjackie on October 30, 2003, 06:55:44 am

Title: Modifty Advance Feature for Online Photo Album
Post by: itjackie on October 30, 2003, 06:55:44 am
Any idea from this feature and have change the code form coppermine template.
- disable the last addion and random view in first page.
- Add Login Page in First page
- Add the session timeout in Online ablum Photo
- Block back web site


Thanks
Jackie Wong
Title: Modifty Advance Feature for Online Photo Album
Post by: Joachim Müller on October 30, 2003, 07:48:58 am
if you need support on different issues, please post different postings next time, it's hard to track this way.
I don't know if I understand you fully, but here goes some answer...

To display a login field all the time, edit anycontent and insert something like
Code: [Select]
                   <form action="login.php?referer=$referer" method="post">
                        <td class="tableb" width="40%">{$lang_login_php['username']}</td>
                        <td class="tableb" width="60%"><input type="text" class="textinput" name="username" style="width: 100%"></td>
                  </tr>
                  <tr>
                          <td class="tableb">{$lang_login_php['password']}</td>
                        <td class="tableb"><input type="password" class="textinput" name="password" style="width: 100%"></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center" class="tableb">{$lang_login_php['remember_me']} <input name="remember_me" type="checkbox" class="checkbox" value="1"></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center" class="tablef"><input name="submitted" type="submit" class="button" value="{$lang_login_php['login']}"></td>
                    </form>
. Remember it will even display if a user is already logged in, so you'll have to do some php magic so it won't display all the times.

GauGau
Title: Modifty Advance Feature for Online Photo Album
Post by: hyperion on October 30, 2003, 07:51:26 am
Jackie,

-Disable the last addition and random view in first page.

1. Open Config when you are in Admin mode.
2. Look for "The content of the main page"
3. Change breadcrumb/catlist/alblist/random,2/lastup,2 to breadcrumb/catlist/alblist
4. Save the new configuration.

-Add Login Page in First page

 *This is already available to your users through the login link at the top of the page. DO you mean that you want them to go to login immediately?

If so add:

Code: [Select]

if (!USER_ID) {
header("Location:http://www.yourdomain.com/coppermine/login.php");
exit;
}


after

Code: [Select]

if ($CONFIG['enable_smilies']) include("include/smilies.inc.php");


like this:

Code: [Select]

if ($CONFIG['enable_smilies']) include("include/smilies.inc.php");
if (!USER_ID) {
header("Location:http://www.yourdomain.com/coppermine/login.php");
exit;
}


to index.php.

- Add the session timeout in Online ablum Photo

I am sorry, but I do not understand. Could you try saying this in a different way?

-Block back web site

Again, I am sorry, but I do not understand. Could you try saying this in a different way?

-Hyperion
Title: Thanks
Post by: itjackie on October 30, 2003, 10:14:15 am
Another, is Photo Album each page session time.
Jackie Wong
Title: Modifty Advance Feature for Online Photo Album
Post by: Joachim Müller on October 30, 2003, 11:14:37 am
Jackie, please use full sentences and describe your problem in detail. I can't make heads or tails out of it.

GauGau
Title: Modifty Advance Feature for Online Photo Album
Post by: jasendorf on October 30, 2003, 02:49:25 pm
Don't worry gaugau... it's not your English... I can't make heads or tails out of it either...