 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
June 15th, 2006, 10:43 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: May 2003
Posts: 3
| stylesheets Integration without Header\footer integration
I want to integrate with My vB3 Skins StyleSheet only .. I don't want the header/Footer integration
I have changed some settings but the Frontend of PhotoPost comes without any style Edit Integration
Do you want to enable the vB3 Enhanced features which use vB3 controls in PhotoPost? ON
Do you want to enable the vB3 Integration which uses your vB3 headers, footers and styles? OFF Forum Settings
Use Integrated forum stylesheets? yes |
| |
June 16th, 2006, 09:38 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
You need to use the style integration if you want to use the style. You can alter your header-inc.php to point to optional templates you want to make in vbulletin for the gallery like so making new header and footer templates in vb template editor. Delete the line noted in header-inc.php and add the lines in bold. Code: Content visible to verified customers only.
|
| |
June 17th, 2006, 12:15 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| Will this allow for optional headtags as well
Does changing the head_inc.php file as noted allow you to specify a headtags file as well that superscedes the tags in vBulletin?
|
| |
June 17th, 2006, 07:02 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
You could define an alternate headerinclude to load yes like so Code: Content visible to verified customers only.
|
| |
June 17th, 2006, 10:05 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| I meant for each category
Thanks for the suggestion. I suppose what I was wondering if the first mod noted above would have any impact on the use of the category specific headtag files, but I think I already know the answer! |
| |
June 17th, 2006, 10:22 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
No this is just a hack to make sure of a different global header with vb integration on.
|
| |
July 20th, 2006, 04:40 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| Headerinclude template looks daunting! Quote: |
Originally Posted by Chuck S You could define an alternate headerinclude to load yes like so Code: Content visible to verified customers only.
|
I'm pursuing re-integrating my classifieds (auction) site as a result of some unrealized benefits with posting new listings in a forum.
To do so I have reset all of the necessary settings, modified the title in pp_inc.php, and I am down to trying to assign an alternate headtags, i.e. metatags for the classifieds pages.
In looking at the headerinclude template in vBulletin, I'm left wondering how I would properly substitute the appropriate variables to pick up an alternate headtags file?
The headtags file implementation for the non-integrated version is very straight forward, but the code in vBulletin is choc-a-block full of variables which leave a lot to be understood before replacing the template with a simple list of metatags (as in the headtags file).
Can you offer any input what the modified headerinclude template should look like to be able to substitute a unique set of metatags for classifieds pages?
Thank you,
-GateKeeper
|
| |
July 20th, 2006, 05:02 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| A better question!
Maybe if I posed this slightly differently, it may help me understand why a unique vBulletin headerinclude template is even necessary in order to get a unique set of metatags included in classified pages.
This code: Quote:
// Read in the header tags file
if ( file_exists($headtagsopen) ) {
$filearray = file($headtagsopen);
$headtags = implode( " ", $filearray );
}
else
$headtags = "";
| would have me believe that if the headtags file is defined in PPClassifieds, that it should be included in the classified pages, even with vBulletin integrations turned on. Is this correct. Or is it that $headtagsopen is somehow not defined when integrations are turned on, and therefore the headtags is set to "". That being the case I can understand why you have to default to setting up a unique headerinclude template in vBulletin. Does my question make sense? Can you confirm that $headtags indeed is set to "" when integrations is turned on?
Thank you,
-GateKeeper
|
| |
July 20th, 2006, 05:36 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
Your posting code from a NON VB INTEGRATED HEADER.
Remember if you integrate with vbulletin we load the vb header footer etc and do not use the Photopost printheader system
Your not able to load any header footer or headtags files in the photopost apps if vb3 integration is on.
|
| |
July 20th, 2006, 06:20 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| Can you use a variable in the replacement variable manager
Thanks, Chuck, for the direction. Do you know if you can use any of the defined variable in PPClassifieds inside the replacement variable manager in vBulletin? It would be really helpful to utilize that utility for an alternate headinclude template rather than writing my own string replacement command. So far I haven't found the correct syntax to get anything in that utility to act as a variable, anything input there appears to do a straight text replacement. Any ideas?
Thank you.
-GateKeeper
|
| |
July 20th, 2006, 06:39 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| <title> is set in Printheader()
Chuck,
I"m confused. It seems that I can control the title in an integrated forum/ppclassifieds by tweeking the this: Quote:
if ( !empty($vbheader) ) {
if ( $printheader == "yes" ) $theader = $vbheader;
else $theader = $vbnoheader;
$metadataname = trim($titlereplace);
$theader = str_replace( "{tablewidth}", $Globals['tablewidth'], $theader);
$theader = str_replace( "{pagebgcolor}", $Globals['forwardbod'], $theader);
// $theader = str_replace( "<head>","<head><title>{$Globals['galleryname']} {$titlereplace}-TimeshareGateway.com</title>", $theader );
$theader = str_replace( "<head>","<head><title>{$metadataname} Timeshare Auctions-Selling Buying Renting Timeshare by TimeshareGateway.com</title>", $theader );
$theader = str_replace( "{ppheader}", "$nocachetag $headtags $javapopup $headslide", $theader);
print "$theader";
| which as best I can tell is part of the printheader() function. I definitely have integrations turned on.
I also had to rename the headtags file pointed to from within the admin program or I end up with two sets of metatags, one at the top of the view source and one follows the "no cache headers" metatags.
I hope I haven't clobbered my code.
|
| |
July 22nd, 2006, 06:00 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| Need some clarification please?
I have integrations turned on for PPClassifieds and alternate definitions for headerinclude and everything works as described. When I try the same thing in ReviewPost, I loose the stylesheet information entirely.
The only line I'm adding to header_inc.php is Quote: |
eval('$headinclude = "' . fetch_template('headinclude-reviews') . '";');
| As soon as I put this line in the header_inc.php file and put the file on the server, any style information gets blown away. The only information I have in the headinclude-reviews are new metatag definitions (exactly like the one working in PhotoPost Classifieds without any problems).
Am I assuming too much to believe that I should be able to use this method for both PPClassifieds and ReviewPost?
Thank you.
|
| |
July 22nd, 2006, 06:04 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
Don't know honestly never have had a reason to try it.
If you want to load optional headers footers headtags the way is to use photopost's header system IMO.
|
| |
July 22nd, 2006, 06:10 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 240
| My bad!
Just realized I conveniently left off some information at the bottom of the headinclude-reviews template. All is well.
Sorry to have hit you up for help on this. Should double check my work before asking for help.
Thank you.
p.s. I was using the photopost header system, but then I realized how much I loose in the process with collapseable tables, posting entries into forums for classifieds, DHTML menus, etc. and thought I'd give it a go. With the alternate headinclude and header templates, it seems the best of both worlds, unless you want category specific header info.
Thanks again.
|
| |
September 9th, 2007, 10:46 AM
|
#15 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
Hi
I am looking for the same thing: I want to use vb integration for one of my sites, but I do NOT want to show the vb header/footer.
The reason for this is, that my user get totally confused, if they see a vb navigation in i.e. the gallery section, although the vb navigation does not work for the gallery at all. I.E. search etc. is only searching in the vbulletin forum, not in the gallery. So why shall it show off in the gallery then? Did nobody realized this inherent problem?
So I need desperatly a way to have a vbulltin integration but without vb headers & footers, only the PP, CL or RP header/footers shall be used.
Gatekeeper seems to have found a solution for this, but I did not understand it.
Can anybody write the exact code I have to use and where I have to place the code?
Thanks in advance
|
| |
September 9th, 2007, 10:57 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
| stylesheets Integration without Header\footer integration
Just follow my initial post like this and create new header footers for your photopost in vb and edit the file noted in my post like so. That should get you what you want there.
|
| |
September 9th, 2007, 11:14 AM
|
#17 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote:
Originally Posted by Chuck S | Hi
thanks for the quick reply.
What if I would like to use the CSS style of PP/CL/RP? So that the vb integration is basically influencing only the shared user login/registration between vb, PP, CL and RP?
Do I then also have to apply the above procedure?
I found also this very old posting, do not know whether this would be the right solution in my special case: http://www.photopost.com/forum/showt...96#post1204296 |
| |
September 9th, 2007, 11:20 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
No not at all. If you only want to use the vb3 login simply go to the admin of your programs
Under Forum Settings turn off the switch that says use forum style. Set to No.
Under Edit Intergration Settings set the 3 vb3 switches to No.
Thats all you need to do to use the photopost headers and styles and still use the forum login.
|
| |
September 9th, 2007, 11:27 AM
|
#19 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote:
Originally Posted by Chuck S No not at all. If you only want to use the vb3 login simply go to the admin of your programs
Under Forum Settings turn off the switch that says use forum style. Set to No.
Under Edit Intergration Settings set the 3 vb3 switches to No.
Thats all you need to do to use the photopost headers and styles and still use the forum login. |
GREAT!
Thank you, that did it!!!
|
| |
September 9th, 2007, 12:58 PM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
have a great weekend see ya next time.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:32 AM. | |