|
|
Step_N_Wolf |
| September 22, 2007, 9:58am |
|
|
Posts: 105
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 1 days 9 hours 21 minutes
Location: Cut-N-Shoot, TX
|
Is there a way to use a template other than the default template, in certain instances? I would like to use the base forum data that I have, but display part of it with a different template for a different audience. One way seems to be a parallel forum with a different template library (assuming that I can path over to the original forum files).  I bet that there is an easier way.  The Goal (aka Why do you want to do this?): My goal is to display the calendar without the login buttons and whatnot separate from the forum. I already use the RSS feed for upcoming events on other pages. I really like that capability.  Any thoughts and suggestions appreciated. All the best, Jimbo |
|  | Jimbo aka Step-N-Wolf www.DigitalHawg.net
My ally is sensitivity, and a powerful ally it is. It's nice to be important, but it's more important to be nice. |
|
|
|
|
|
|
Justin |
| September 22, 2007, 11:18am |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
You can do it with the perl templates, but that'd be a little too complicated and complex. Edit this in Routines.pl:
|
Code
fopen(TEMP,"$templates/$dtheme/template.html") or $ebout .= '<strong>Theme not found!</strong><br /><br />';
|
|
And change it to like:
|
Code
if($URL{'v'} eq 'cal') { fopen(TEMP,"$templates/$dtheme/cal.html"); }
else { fopen(TEMP,"$templates/$dtheme/template.html"); } |
|
There are other ways too. I've posted them years ago. |
| I do installs for $25 and upgrades for $20.Technical support is always free. Donate to E-Blah! My Websites: Revolution Reality (My Blog) | MinistryTalk.com | Portfolio"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV  |
|
|
|
|
|
Step_N_Wolf |
| September 22, 2007, 11:35am |
|
|
Posts: 105
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 1 days 9 hours 21 minutes
Location: Cut-N-Shoot, TX
|
Justin, Thanks! However, will the following code also affect the calendar as it's used in the main forum? I want to keep that calendar like it is with the default template (not to be difficult  ). Thanks again and all the best, Jimbo
You can do it with the perl templates, but that'd be a little too complicated and complex. Edit this in Routines.pl:
|
Code
fopen(TEMP,"$templates/$dtheme/template.html") or $ebout .= '<strong>Theme not found!</strong><br /><br />';
|
|
And change it to like:
|
Code
if($URL{'v'} eq 'cal') { fopen(TEMP,"$templates/$dtheme/cal.html"); }
else { fopen(TEMP,"$templates/$dtheme/template.html"); } |
|
There are other ways too. I've posted them years ago.
|
|  | Jimbo aka Step-N-Wolf www.DigitalHawg.net
My ally is sensitivity, and a powerful ally it is. It's nice to be important, but it's more important to be nice. |
|
|
|
|
|
|
Justin |
| September 22, 2007, 1:59pm |
|
|
Posts: 15,075
Gender:  Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
Step_N_Wolf |
| September 22, 2007, 6:39pm |
|
|
Posts: 105
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 1 days 9 hours 21 minutes
Location: Cut-N-Shoot, TX
|
|
|  | Jimbo aka Step-N-Wolf www.DigitalHawg.net
My ally is sensitivity, and a powerful ally it is. It's nice to be important, but it's more important to be nice. |
|
|
|
|
|
|
Step_N_Wolf |
| September 23, 2007, 10:26am |
|
|
Posts: 105
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 1 days 9 hours 21 minutes
Location: Cut-N-Shoot, TX
|
Justin,
Thanks for the code. I did need to use it in the "secondary" forum that I set up for the unique calendar. The code is used to go to a redirect page, in case someone tries to access something other than the calendar from this forum. This forum currently contains code and prefs files only. All other data is pathed to the main forum.
I also removed birthdays from this version of the Calendar.
Thanks again and all the best,
Jimbo |
|  | Jimbo aka Step-N-Wolf www.DigitalHawg.net
My ally is sensitivity, and a powerful ally it is. It's nice to be important, but it's more important to be nice. |
|
|
| Revision History (2 edits) |
|
| |
|
|
|
|
|
Step_N_Wolf |
| September 23, 2007, 1:27pm |
|
|
Posts: 105
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 1 days 9 hours 21 minutes
Location: Cut-N-Shoot, TX
|
I changed the new forum name so the link above to the version of our Calendar for use by the general public without E-Blah navigation and birthdays is at: www.cutnshoothog.org/Events/calendar.phpYeah, the page format needs some work, but you get the idea. All the best, Jimbo  |
|  | Jimbo aka Step-N-Wolf www.DigitalHawg.net
My ally is sensitivity, and a powerful ally it is. It's nice to be important, but it's more important to be nice. |
|
|
| Revision History (1 edits) |
|
| |
|
|
|
|
|
Step_N_Wolf |
|
|
Posts: 105
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 1 days 9 hours 21 minutes
Location: Cut-N-Shoot, TX
|
Well, I subsequently modified the ProfileEdit.pl, QuickCore.pl, and Themes.pl for the reference to the ThemesList.txt file, but now I'm driving totally off of the data from the "base" forum other than the codes directory and the ThemesList.txt file in the Prefs directory of the alternate forum.  All the best, Jimbo  |
|  | Jimbo aka Step-N-Wolf www.DigitalHawg.net
My ally is sensitivity, and a powerful ally it is. It's nice to be important, but it's more important to be nice. |
|
|
|
|
|
|
|