Modifty Advance Feature for Online Photo Album Modifty Advance Feature for Online Photo Album
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Modifty Advance Feature for Online Photo Album

Started by itjackie, October 30, 2003, 06:55:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

itjackie

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

Joachim Müller

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                    <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

hyperion

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:


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


after


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


like this:


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
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

itjackie

Another, is Photo Album each page session time.
Jackie Wong

Joachim Müller

Jackie, please use full sentences and describe your problem in detail. I can't make heads or tails out of it.

GauGau

jasendorf

Don't worry gaugau... it's not your English... I can't make heads or tails out of it either...
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.