Page Index Toggle Pages: 1 ... 4 5 [6]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Sidebar v1.6 for SP1.3 (Read 23436 times)
DocRST
God Member
*****
Offline


Dont get use to it!

Posts: 1846
Location: Oklahoma City
Joined: Aug 24th, 2002
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #75 - Jun 23rd, 2003 at 5:10pm
Print Post  
Thy wond show on the Sidebar.
  

Doc Cowles
Web Master
YourWebSpace.com  -  Free YaBB hosting
docrst@yahoo.com
Back to top
IP Logged
 
Michael Griffin
God Member
*****
Offline


Black Panther's are cool!!!

Posts: 1337
Location: Crossville
Joined: Mar 30th, 2003
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #76 - Jul 2nd, 2003 at 8:07am
Print Post  
Hello Michael,

Can this be used in "User Templates" mod? Thank you

Panther Wink
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
DocRST
God Member
*****
Offline


Dont get use to it!

Posts: 1846
Location: Oklahoma City
Joined: Aug 24th, 2002
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #77 - Jul 2nd, 2003 at 11:59am
Print Post  
It is for me.
  

Doc Cowles
Web Master
YourWebSpace.com  -  Free YaBB hosting
docrst@yahoo.com
Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #78 - Jul 2nd, 2003 at 6:08pm
Print Post  
You'd have to modify Subs.pl. Look for

Code
Select All
	fopen(TEMPLATE,"template_sidebar.html") || die("$txt{'23'}: template_sidebar.html"); 



and replace it with:

Code
Select All
	### User Templates ###
	  $tmplfile =~ /(.+?)\.html/$1/isg;
	  $tmplfile .= "_sidebar.html";
	if(!$tmplfile || !-e("$templatesdir/$tmplfile")) { $tmplfile = "default_sidebar.html"; }
	if(!-e("$templatesdir/$tmplfile")) { $templatesdir = "$boarddir"; $tmplfile = "template_sidebar.html"; }

	fopen(TEMPLATE,"$templatesdir/$tmplfile") || die("$txt{'23'}: $tmplfile.html");
	###/User Templates ###
 



Now you should put your sidebar templates into the tempaltes directory and name them "templatename_sidebar.html".

Note: I didn't test this code!
  

The Administrator.
Back to top
WWW  
IP Logged
 
TJMaxxX
Full Member
***
Offline



Posts: 144
Location: Jacksonville
Joined: May 12th, 2003
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #79 - Jul 2nd, 2003 at 7:19pm
Print Post  
Michael,  i don't know much about this but does the ext. of the file have to be .html for YaBB code to read it and print it as a template?? cause i solution here would be to change the side templates to template.side

cause User Template.mod looks for all files using ".html" so those side templates would be read too..

so we either could change the file ext. or give the side templates there own directory.. which do you think would be better??
  
Back to top
 
IP Logged
 
Nox
New Member
*
Offline


Moo

Posts: 4
Joined: Jul 1st, 2003
Re: Sidebar v1.6 for SP1.3
Reply #80 - Jul 2nd, 2003 at 7:21pm
Print Post  
Brilliant mod!! Grin
Love it, just what I was looking for.
The only thing I added to it was a meta refresh tag in the template  Grin
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #81 - Jul 2nd, 2003 at 7:46pm
Print Post  
TJMaxxX wrote on Jul 2nd, 2003 at 7:19pm:
Michael,  i don't know much about this but does the ext. of the file have to be .html for YaBB code to read it and print it as a template?? cause i solution here would be to change the side templates to template.side

cause User Template.mod looks for all files using ".html" so those side templates would be read too..

so we either could change the file ext. or give the side templates there own directory.. which do you think would be better??

Hm indeed that could be a problem. Alright try this code instead:

Code
Select All
 ### User Templates ###
   $tmplfile =~ /(.+?)\.html/$1/isg;
   $tmplfile .= ".side";
 if(!$tmplfile || !-e("$templatesdir/$tmplfile")) { $tmplfile = "default.side"; }
 if(!-e("$templatesdir/$tmplfile")) { $templatesdir = "$boarddir"; $tmplfile = "template_sidebar.html"; }

 fopen(TEMPLATE,"$templatesdir/$tmplfile") || die("$txt{'23'}: $tmplfile");
 ###/User Templates ### 



Now, you can use templates just like "example.side" in your template directory.
  

The Administrator.
Back to top
WWW  
IP Logged
 
TJMaxxX
Full Member
***
Offline



Posts: 144
Location: Jacksonville
Joined: May 12th, 2003
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #82 - Jul 2nd, 2003 at 8:05pm
Print Post  
Smiley ok.. great...wasn't sure if i would have to create a seperate directory or not..


Great mod Michael!! Smiley
  
Back to top
 
IP Logged
 
Michael Griffin
God Member
*****
Offline


Black Panther's are cool!!!

Posts: 1337
Location: Crossville
Joined: Mar 30th, 2003
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #83 - Jul 3rd, 2003 at 2:48am
Print Post  
Sorry, this is confusing to me...

Ok, so... nothing is changed with the actual user template... right? That was what was confusing me... Thanks Smiley

Panther Wink
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #84 - Jul 3rd, 2003 at 12:12pm
Print Post  
This won't affect your normal templates at all. Smiley
  

The Administrator.
Back to top
WWW  
IP Logged
 
Michael Griffin
God Member
*****
Offline


Black Panther's are cool!!!

Posts: 1337
Location: Crossville
Joined: Mar 30th, 2003
Gender: Male
Re: Sidebar v1.6 for SP1.3
Reply #85 - Jul 3rd, 2003 at 11:31pm
Print Post  
Ok, thanks Cheesy

Panther Wink
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
dvtech
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 6
Location: Santa Clarita
Joined: May 4th, 2003
Re: Sidebar v1.6 for SP1.3
Reply #86 - Jul 7th, 2003 at 7:24am
Print Post  
I sort of have a problem. I uploaded all three files to my server and tried going to http://www.dv-tech.net/cgi-bin/ftemp/YaBB.pl?action=sidebar and i am getting my page cannot be displayed error page.
Whats up with that??
  
Back to top
WWW  
IP Logged
 
dvtech
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 6
Location: Santa Clarita
Joined: May 4th, 2003
Re: Sidebar v1.6 for SP1.3
Reply #87 - Jul 7th, 2003 at 7:25am
Print Post  
scratch that i got it working. I never added the cgi-bin to my path when i went to it
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 4 5 [6] 
Send TopicPrint