Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Technical Support    Question and Answer  ›  Use of Multiple Templates
Users Browsing Forum
No Members and 9 Guests

Use of Multiple Templates   This thread currently has 431 views. Print
1 Pages 1 Recommend Thread
Step_N_Wolf
September 22, 2007, 9:58am Report to Moderator Report to Moderator
E-Blah Member
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.
Logged Offline
Site Site Private Message Private message
Justin
September 22, 2007, 11:18am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
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

Logged Offline
Site Site Private Message Private message Reply: 1 - 7
Step_N_Wolf
September 22, 2007, 11:35am Report to Moderator Report to Moderator
E-Blah Member
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
Quoted from Justin
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.
Logged Offline
Site Site Private Message Private message Reply: 2 - 7
Justin
September 22, 2007, 1:59pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
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
Umm?  I'm not sure if I know what you mean ...


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

Logged Offline
Site Site Private Message Private message Reply: 3 - 7
Step_N_Wolf
September 22, 2007, 6:39pm Report to Moderator Report to Moderator
E-Blah Member
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
Here's what I'm tryin' to do.  I made some progress, but I wonder if I did it the hard way.  The difference is the lack of "Login buttons" and whatnot and personalization in example 2:

Example 1 - Traditional for Members and Guests

Example 2 - For the General Public

Thoughts?

All the best,

Jimbo

Quoted from Justin
Umm?  I'm not sure if I know what you mean ...




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.
Logged Offline
Site Site Private Message Private message Reply: 4 - 7
Step_N_Wolf
September 23, 2007, 10:26am Report to Moderator Report to Moderator
E-Blah Member
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, 12:06pm
Step_N_Wolf  -  September 23, 2007, 11:44am
Logged Offline
Site Site Private Message Private message Reply: 5 - 7
Step_N_Wolf
September 23, 2007, 1:27pm Report to Moderator Report to Moderator
E-Blah Member
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.php

Yeah, 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  -  September 23, 2007, 2:01pm
Logged Offline
Site Site Private Message Private message Reply: 6 - 7
Step_N_Wolf
October 6, 2007, 9:02pm Report to Moderator Report to Moderator
E-Blah Member
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.
Logged Offline
Site Site Private Message Private message Reply: 7 - 7
1 Pages 1 Recommend Thread
Print

E-Blah Community    Technical Support    Question and Answer  ›  Use of Multiple Templates