Page Index Toggle Pages: 1 2 [3] 4  Send TopicPrint
Very Hot Topic (More than 25 Replies) Custom Pages for YaBB 2.5AE - V.0.5.1 (Read 27687 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #30 - Dec 19th, 2010 at 5:04am
Print Post  
The path at the top is the correct path to your server...
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #31 - Dec 19th, 2010 at 5:07am
Print Post  
Roderunner wrote on Dec 19th, 2010 at 5:02am:
all the other paths between board dir and variables are ./path
./Admin
./Boards

That's how they should be. It's the ones pointing directly to your root that you need to be the same.

Roderunner wrote on Dec 19th, 2010 at 5:04am:
OK,  I'll wait a little later when no one is on the site and test changing the root web dir to public_html from www at the we host side and pray it doesn't break anything.  If it does, I'll have to put it back.

Okay. It's five in the morning here now anyway, I'll be back at some point tomorrow...
  
Back to top
 
IP Logged
 
Roderunner
New Member
*
Offline


I Love YaBB 2!

Posts: 27
Joined: Dec 18th, 2010
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #32 - Dec 19th, 2010 at 5:24am
Print Post  
I did find that

The directory www is a link (shortcut) to the public_html directory. Thus by accessing www you are accessing public_html in fact.

So that shouldn't be an issue as I was suspecting.

I'm just lost on this one.
  
Back to top
 
IP Logged
 
Roderunner
New Member
*
Offline


I Love YaBB 2!

Posts: 27
Joined: Dec 18th, 2010
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #33 - Dec 19th, 2010 at 5:35am
Print Post  
Derek Barnstorm wrote on Dec 19th, 2010 at 5:07am:
Okay. It's five in the morning here now anyway, I'll be back at some point tomorrow... 


Wow, 5am. Only 9:30pm here in Seattle, WA  Wink
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #34 - Dec 19th, 2010 at 5:49am
Print Post  
Just to be sure, it might be worth getting in contact with your host and asking them what the absolute path to your cgi-bin and public_html root directory is.

Roderunner wrote on Dec 19th, 2010 at 5:35am:
Wow, 5am. Only 9:30pm here in Seattle, WA

Ah, Seattle. Does it really rain all the time?
  
Back to top
 
IP Logged
 
Roderunner
New Member
*
Offline


I Love YaBB 2!

Posts: 27
Joined: Dec 18th, 2010
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #35 - Dec 19th, 2010 at 8:30pm
Print Post  
Yes, It does seem to.  We just got thru a bad wind storm over the last 2 days.  40-50mile per hour winds.

You must be in Germany?

Stopped working on the custom pages and trying to fix my layout.  I posted in layout support
http://www.boardmod.org/yabb2/YaBB.pl?num=1292787574/1#1

Just trying to figure out which file I need to upload to fix. Then hopefully I can figure out the why's so I can learn this.  I don't want to upload the whole site from backup, because then I won't learn the why\how I screwed it up.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #36 - Dec 19th, 2010 at 9:33pm
Print Post  
Roderunner wrote on Dec 19th, 2010 at 8:30pm:
You must be in Germany?

Not far off I guess... UK.

Roderunner wrote on Dec 19th, 2010 at 8:30pm:
trying to fix my layout.  I posted in layout support

I see you've fixed it now...

  
Back to top
 
IP Logged
 
Roderunner
New Member
*
Offline


I Love YaBB 2!

Posts: 27
Joined: Dec 18th, 2010
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #37 - Dec 19th, 2010 at 10:46pm
Print Post  
Yes, but in the process, I killed all my mods again.  Arg!  I tried to re-apply them and nothing,  they won't take.  Ugh!  Wish I knew code so I can trace it down.
  
Back to top
 
IP Logged
 
ayjay
New Member
*
Offline


Code Moron

Posts: 30
Joined: Jan 13th, 2009
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #38 - Feb 21st, 2011 at 2:33pm
Print Post  
I just installed it.
Excellent mod that will be used a lot!

Thanks for sharing
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #39 - Feb 22nd, 2011 at 5:59pm
Print Post  
ayjay wrote on Feb 21st, 2011 at 2:33pm:
Thanks for sharing


Thank YOU ... for using it and the reply ....  Wink


  

Greeting ThM
Back to top
 
IP Logged
 
DylanBubi
New Member
*
Offline


I Love YaBB 2!

Posts: 4
Joined: Jul 16th, 2011
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #40 - Jul 16th, 2011 at 6:52am
Print Post  
Thanks for feedback CJ. Nice to hear you like it ....
  
Back to top
 
IP Logged
 
westwegoman
New Member
*
Offline


I Love YaBB 2!

Posts: 46
Location: Westwego, La.
Joined: Feb 10th, 2012
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #41 - Feb 10th, 2012 at 9:04pm
Print Post  
Thanks for the mod. Install was simple and it works great.

Has anyone found a fix for the custom tabs not showing as active when clicked?

Merv.
  


If they're big enough to hook, they're big enough to cook!!!!
Back to top
WWW  
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #42 - Feb 16th, 2012 at 4:54pm
Print Post  
I pulled this up

ChiMoHe wrote on Jun 24th, 2007 at 3:51pm:
Edited:
this code reflects changes in the next few posts (ie formsession hidden input removed)


I wanted my CustomPages Menu to be a dropdown menu so in CustomPages.pl

replaced
Code
Select All
sub CustomPageMenu {
	fopen(SET, "<$vardir/custompage.txt");
	my @pages = <SET>;
	fclose(SET);
	my ($query, $pagetitle, $useyabbc, $link, $click, $guest, $cpmenu, $page);
	if(@pages) {
		foreach $page (@pages) {
			($query, $pagetitle, $useyabbc, $link, $click, $guest) = split /\|/, $page;
			if($link == 1) {
				$cpmenu .=qq~&#124; <a href=\"$scripturl?custompage=$query\">$pagetitle</a> ~;
			} else {
				$cpmenu .=qq~~;
			}
		}
		if($cpmenu ne "") {
			$yyCustomPageMenu = "<br />$cpmenu &#124;";
		}
	}

 



with
Code
Select All
sub CustomPageMenu {
	fopen(SET, "<$vardir/custompage.txt");
	my @pages = <SET>;
	fclose(SET);
	my ($query, $pagetitle, $useyabbc, $link, $click, $guest, $cpmenu, $page);
	if(@pages) {
		foreach $page (@pages) {
			($query, $pagetitle, $useyabbc, $link, $click, $guest) = split /\|/, $page;
			if($link == 1) {
				$cpmenu .=qq~<option value=\"?custompage=$query\">$pagetitle</option>~;
			} else {
				$cpmenu .=qq~~;
			}
		}
		if($cpmenu ne "") {
			$yyCustomPageMenu = qq~<form method="post" action="$scripturl" name="jump" style="display: inline;">
<select name="values" onchange="if(this.options[this.selectedIndex].value) window.location.href=$scripturl' + this.options[this.selectedIndex].value;">$cpmenu</select>
    <input type="button" value="Go" onclick="if (values.options[values.selectedIndex].value) window.location.href=$scripturl' + values.options[values.selectedIndex].value;" />
</form> ~;
		}
	}
}
 



Then in Templates/default/default.html

replaced
Code
Select All
<yabb CustomPageMenu></div>
				</td>
			</tr>
		</table>
 



with
Code
Select All
</div>
				</td>
			</tr>
				<tr>
				<td valign="middle" align="right" colspan="2"><yabb CustomPageMenu></td>
			</tr>
		</table>
 



works great click to see in action

Thanx for a great mod


I haven't tried it yet ... depends on the how much was changed in the update ... I'll take a look over the next few days if ThM is busy
  

soundcloud.com/chimohe
Back to top
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #43 - Feb 3rd, 2013 at 6:05am
Print Post  
Anyone had any success running a java script on a custom page.

I run one on my main website but won't show on custom page??

  

Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Custom Pages for YaBB 2.5AE - V.0.5.1
Reply #44 - Feb 3rd, 2013 at 9:04am
Print Post  
Please PM me the Code. I'll try it .....

Greetings Thomas
  

Greeting ThM
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 
Send TopicPrint