Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Modifty Advance Feature for Online Photo Album  (Read 4305 times)

0 Members and 1 Guest are viewing this topic.

itjackie

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Modifty Advance Feature for Online Photo Album
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Modifty Advance Feature for Online Photo Album
« Reply #1 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
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Modifty Advance Feature for Online Photo Album
« Reply #2 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
Logged
&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

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

itjackie

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Thanks
« Reply #3 on: October 30, 2003, 10:14:15 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Modifty Advance Feature for Online Photo Album
« Reply #4 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
Logged

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Modifty Advance Feature for Online Photo Album
« Reply #5 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...
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.