PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 22nd, 2005, 02:21 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Posts: 32
Pass phpbb variables through templates...

My site is coded around the phpbb forum system and in my site header is code that runs phpbb sessions so that even my static pages have access to phpbb variables.

Unfortunately, because PP starts a session itself I cannot run my standard header code as it causes an error... can't start a second session inside of my header. SOOO..... here is what I have and maybe you can tell me how to deal with it...

1. I have commented out the lines in pp-inc.php that create and print the header (the header variable creation, opening html tags through the end of the if/else statement that prints the header) so that the standard HTML will not print.

2. I have added an include statement to menubar.tmpl that opens my php file containing the header code for the site (and edited that code so that any calls from the gallery won't start a phpbb session)

Now I need to use some phpbb variables in my header.php file... and they SHOULD be available somehow, but I am not sure how. I tried $username[0], etc... but they come up blank.

Q1: Is the phpbb session started BEFORE the menubar.tmpl template is loaded?

Q2: How can I call the following variables from phpbb within the menubar.tmpl template:
- user_id
- username
- session_logged_in
- user_new_privmsg

Thanks,

Darren
Scion Life
scionlife is offline   Reply With Quote
Old March 22nd, 2005, 02:37 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Code discussions can take place over at http://www.photopostdev.com as here at support we only support the code as it is written.

Our phpbb integrations the user and stylesheet. There is no integrated header like VB
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 22nd, 2005, 02:49 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Posts: 32
Thanks, posted over there.
scionlife is offline   Reply With Quote
Old March 25th, 2005, 12:30 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Posts: 32
It doesn't seem that anyone is monitoring that forum and this is a fairly simple request that I need in order to fully integrate PP with my site. Can you please either answer the question or have someone reply to my post on the dev site? Thanks.
http://www.photopostdev.com/showthread.php?t=1270

Darren
Scion Life
scionlife is offline   Reply With Quote
Old March 25th, 2005, 12:31 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Posts: 32
By the way, I am not asking for the rewrite of the code, just the variables that the phpbb user info has been assigned to in your script.
scionlife is offline   Reply With Quote
Old March 25th, 2005, 08:34 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Photopostdev.com is not part of photopost.com so no one from here monitors that site.

If all you want to know is how we define username and userid I can answer that

$User['username'] $User['userid']
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 25th, 2005, 12:30 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Posts: 32
BINGO, that was all I needed. With the $User[] variable known I can pass the user information through the menubar template to my header and it can control the buttons at the top of my site that allow logging in/out, message panel link and profile link.... you guys might want to check it out because it basically gives forum control to the entire site... thanks again.

www.scionlife.com/gallery

Darren
scionlife is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use variables from VB3 in PPclassifieds? Jeremy Classifieds How do I...? 1 November 19th, 2005 08:22 PM
Where do I change variables for new templates? ghern Classifieds Installation & Upgrades 1 September 1st, 2004 10:31 AM
Shopping Cart or Bit Pass? PixelBabe Before You Buy 1 June 30th, 2004 01:47 PM


All times are GMT -5. The time now is 07:43 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0