 | |  | | | ReviewPost How do I...? Wondering how to do something in ReviewPost? |
July 3rd, 2006, 01:09 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Dec 2005
Posts: 26
| 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
|
| |
July 3rd, 2006, 03:22 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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 |
| |
July 3rd, 2006, 03:35 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Dec 2005
Posts: 26
|
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.
|
| |
July 3rd, 2006, 03:47 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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.
|
| |
July 5th, 2006, 09:17 AM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Dec 2005
Posts: 26
|
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.
|
| |
July 5th, 2006, 09:58 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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.
|
| |
July 5th, 2006, 02:29 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Dec 2005
Posts: 26
|
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. |
| |
July 5th, 2006, 02:43 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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.
|
| |
July 5th, 2006, 09:46 PM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Dec 2005
Posts: 26
|
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. |
| |
July 6th, 2006, 09:46 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
Okay we are in reviewpost here try locating the code in pp-inc.php Code: Content visible to verified customers only.
|
| |
July 6th, 2006, 11:32 AM
|
#11 (permalink)
| | Junior Member Verified Customer
Join Date: Dec 2005
Posts: 26
|
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.
|
| | |
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 12:21 PM. | |