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: IPB Bridging issues  (Read 3138 times)

0 Members and 1 Guest are viewing this topic.

simplyzen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
IPB Bridging issues
« on: April 18, 2005, 08:18:08 pm »

Ok, first off.  LOVE the software.  Thank you.   ;D

Now the issue...  I've bridged with IPB and everything seems to be working perfectly, however, I would like to get the IPB member bar over to the gallery page to further perpetuate the "sameness" of the two softwares.  I think this can be done rather simply, however, I seem to be having issues with your theme.php file.

That file includes {MAIN_MENU1}, {MAIN_MENU2}, {GALLERY}, and {ADMIN_MENU} fields to be placed into the template.html file.  It sucks that so many functions ride in each variable... i.e. {MAIN_MENU1} has A LOT of functions.

Question: Can I create other templates and functions to split out some of those?  i.e. I would like one to include in the template.html file thats, say, {USER_NAME}.  This will display the currently logged in user.  As well as other functions for displaying certian menu items based on if the user is logged or not.

If they're logged I'd like to display:
   A "logged in" version of the IPB member bar:
      Logged in username
      A subscriptions link based on their member group
   Categories link
   My profile link
   My favorites link
   My albums link
   Create album link
   Edit album link
   Upload link
   Contact/Feedback Link
   Albums list
   Last uploads
   Last comments
   Most viewed
   Top rated
   Search

If they're not logged I'd like to display:
   Categories link
   Contact/Feedback link
   Albums list
   Last uploads
   Last comments
   Most viewed
   Top rated
   Search  
     

These need to be done in two separate tables.
Logged

simplyzen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: IPB Bridging issues
« Reply #1 on: April 18, 2005, 08:19:22 pm »

It didn't attach my image...   >:(

Logged

Nibbler

  • Guest
Re: IPB Bridging issues
« Reply #2 on: April 18, 2005, 10:01:28 pm »

You can add extra {PLACEHOLDER} tags yes. Put what they should be transformed to in either the header or footer functions of the theme.php (header if before {GALLERY}, footer if after {GALLERY}).
Logged

simplyzen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: IPB Bridging issues
« Reply #3 on: April 19, 2005, 04:15:40 pm »

What if I need to call certain things such as username?  Will that call just as well in the header or footer function as the function it currently resides in?

i.e. Logged user name is in the
Code: [Select]
function theme_main_menu1() function, and it's called by
Code: [Select]
'{LOGIN_NAME}' => "[" . USER_NAME . "]",
If I put
Code: [Select]
'{LOGIN_NAME}' => "[" . USER_NAME . "]", into the footer will it still pull the name?
Logged

simplyzen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: IPB Bridging issues
« Reply #4 on: April 19, 2005, 04:17:14 pm »

Also, I do not need all of the
Code: [Select]
<!-- BEGIN register -->
<!-- END register -->
<!-- BEGIN login -->
<!-- END login -->
<!-- BEGIN logout -->
<!-- END logout -->
<!-- BEGIN my_gallery -->
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
<!-- END my_profile -->
<!-- BEGIN faq -->
<!-- END faq -->
<!-- BEGIN upload_pic -->
<!-- END upload_pic -->
Code because I'm not using the template that way, is there a way to remove that?  Basically my template is static.  Its one way for logged users and another for not logged.  Period.

 ???
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.