PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost How do I...? (http://www.photopost.com/forum/reviewpost-how-do-i/)
-   -   Is there a way to force a template (http://www.photopost.com/forum/reviewpost-how-do-i/125880-there-way-force-template.html)

HB. July 3rd, 2006 01:09 PM

Is there a way to force a template
 
Hello,

I'm wondering if there is a way to force a template for my users when they visit the RP pages? Currently I have RP integrated with a phpbb forum, and I allow my members to choose between 3 different templates. It would be nice if I can force them to use only 1 of those templates while viewing the RP pages. If this is possible, could someone shed some light on how I can do this?

Thank you

Chuck S July 3rd, 2006 03:22 PM

Force a template? You mean a style correct?

The phpBB integration pulls the style the user has selected in there profile. You can disable there ability to select styles in the forum and they will be left with the one style in there user control panel of the forum ;)

HB. July 3rd, 2006 03:35 PM

Yes I was refering to the style. I know I can force them to only one style in the forum, but I like the option of letting my members choose what style they want to use. On my forum I have a couple of forums setup that no matter what style they have in their profile, it will force a style I have intended, this is only for 2 sub-forums. I was wondering if something like this would be possible with RP, even though they use whatever style they have in their profile, when visiting the RP areas, it would automatically force them to a particular style.

Chuck S July 3rd, 2006 03:47 PM

You can always hard code the gallery stylesheet in your phpbb2.php file here by pointing to a specific style

Code:

Content visible to verified customers only.

HB. July 5th, 2006 09:17 AM

Chuck thanks for the quick reply, but I'm not able to find the phpbb2.php or gallery stylesheet anywhere:( Should these files be located in my RP directory? If I'm doing something wrong, please let me know.

Chuck S July 5th, 2006 09:58 AM

Your not using the gallery stylesheet but you can if you want. The hint I gave was to hard code which phpbb2 stylesheet you want to use in the function above which is in the phpbb2.php file which is located in the forums subdirectory of your reviewpost directory.

HB. July 5th, 2006 02:29 PM

Thank you, I did locate the phpbb2.php file. Before, I kept looking in my stylesheet subfolder. I'm sorry, I'm not a guru coder, but I'm attempting to learn as I go. With that said, I'm just assuming that I would insert that code into the phpbb2.php file? If so is there a location I would insert that code, or does it really matter? I'm also assuming that I would have to replace or add the stylesheet, or tempate name in order for it to work. If I need to replace a word, what would it be, or if I need to add a word, what would it follow?

Sorry for the newbie questions, but I hope you can understand that I don't want to mess anything up, which I've done more then once in the past.:o

Chuck S July 5th, 2006 02:43 PM

See this code

Code:

Content visible to verified customers only.
If you want to hard code one of your phpbb2 stylesheets so users can not change it replace this code {$User['stylesheet']} with the stylesheet name ;) THATS ALL THERE IS TO IT.

HB. July 5th, 2006 09:46 PM

Thank you Chuck, I'll try to pass this on to someone else so I'm not bugging you. I searched for that snipet of code in the phpbb2.php but didn't find it anywhere. At least you gave me a good starting place.:)

Chuck S July 6th, 2006 09:46 AM

Okay we are in reviewpost here try locating the code in pp-inc.php

Code:

Content visible to verified customers only.

HB. July 6th, 2006 11:32 AM

Chuck,

Thank you very much, I was able to locate the code and make my changes. I'm really thankful for your assistance and time.


All times are GMT -5. The time now is 08:36 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97