Page Index Toggle Pages: 1 ... 6 7 [8] 9 10  Send TopicPrint
Very Hot Topic (More than 25 Replies) Custom Page Mod 0.2 - Add more webpages! (Read 45142 times)
qersys
Senior Member
****
Offline


Yes, I am

Posts: 342
Location: SF
Joined: Dec 29th, 2002
Gender: Male
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #105 - Jun 26th, 2007 at 11:34pm
Print Post  
Quote:
click to see in action


Very nice!
  
Back to top
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #106 - Jul 5th, 2007 at 3:54pm
Print Post  
qersys wrote on Jun 26th, 2007 at 11:34pm:
Very nice!



Thankyou. 

I think the next thing want to do is make an option for a second drop-menu and maybe a 3rd.

I'm not to good at perl so I'm not sure if I know how to do it proper.  I think a work around unproper by adding a 2 to the names of the subs and $somethings2 with a CustomPages2.pl and CustomPagesAdmin2.pl

Hopefully jam3z will find some time to do it proper.  or someone.

I'll give it a whirl the unproper way and let you know how it works out.

PLUR
  

soundcloud.com/chimohe
Back to top
IP Logged
 
ford_forgotton
New Member
*
Offline


forgotton.net

Posts: 4
Location: Vancouver
Joined: Jul 8th, 2007
Gender: Male
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #107 - Jul 8th, 2007 at 11:17pm
Print Post  
[quote author=ChiMoHe link=1155118838/90#104 date=1182700281]I wanted my CustomPages Menu to be a dropdown menu so in CustomPages.pl
with [code]
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;" />
<input type="hidden" name="formsession" E954D5477" /></form> ~;
           }
     }
}
[/code]

works great [url=http://anamericanevolution.org/yabb2/YaBB.pl]click to see in action[/url]

Thanx for a great mod[/quote]

I dont know if it was copy/paste errors on my part, or not, but it took me about an hour to find why I couldnt get the above code to work.

Everything displayed correctly, but when you clicked "GO", nothing would happen.

Your site worked, but mine didnt, so I knew it wasnt my browser (opera). I compared your source to mine and found that there was a space in the between characters in the "Form Session value" chain of letters and numbers, and the second thing I found was a missing " ' " in front of the " href=$scripturl' ".

Once I fixed those two items on my page, it works great now!

I have to thank everyone who has contributed to YABB, as I cant code my way out of a wet paper sack, but I can Copy/Paste with the best of them if there is even the slightest bit of info in the code that explains what the heck I am doing.
  
Back to top
WWW  
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #108 - Jul 9th, 2007 at 2:01pm
Print Post  
Thankyou for pointing that out!  Much Appreciated!

I think

Code
Select All
<input type="hidden" name="formsession" value="91B1AEB6AABAA8BAAEB3B162B0A65F84AFA1A09EA8A55797A3985382969192934 D729A9C9E954D5477" /> </form> ~;

 



can be replaced with just

Code
Select All
 </form> ~;

 



I'm pretty sure that formsession value effects cookie handling and I have no idea how.

It probably would be better not to include it.


Edited:
I just made mine without that input and it works just fine.  I modified the code in my first post to not include formsession hidden input  
  

soundcloud.com/chimohe
Back to top
IP Logged
 
BankerGuy
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Location: Boston,
Joined: Jul 14th, 2007
Gender: Male
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #109 - Jul 17th, 2007 at 3:34am
Print Post  
Hello,

I installed this mod custom_page_mod_0.2 and now I get this error:

The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
  
Back to top
 
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #110 - Jul 24th, 2007 at 11:11am
Print Post  
Check to make sure that you uploaded

- Sources/CustomPage.pl CHMOD 777 (ASCII)
- Admin/CustomPage.pl CHMOD 777 (ASCII)
- Languages/English/CustomPage.lng CHMOD 777 (ASCII)
- pages/.htaccess (ASCII)

There also 7 other files that are modified when installing this mod.  Make sure you've uploaded those files as well.  they are:

- Paths.pl
- YaBB.pl (CHMOD 755)
- Admin/AdminIndex.pl (CHMOD 755)
- Admin/AdminSubList.pl
- Sources/Subs.pl
- Sources/ModList.pl
- yabbfiles\Templates\default\default.html

errors can also happen if your files are not CHMOD right

If You still have this error please go to your error log file from your host.  it should be called logs.txt or something like that and post what the last error is.  That's the only way I can see what is going wrong to cause the error
  

soundcloud.com/chimohe
Back to top
IP Logged
 
dgandy
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 3
Location: Sylacauga
Joined: Jul 22nd, 2007
Gender: Female
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #111 - Aug 31st, 2007 at 12:13am
Print Post  
This is my favorite mod! It works perfectly and so easy to use. Thank you so much.  Grin
  
Back to top
WWWYIM  
IP Logged
 
qersys
Senior Member
****
Offline


Yes, I am

Posts: 342
Location: SF
Joined: Dec 29th, 2002
Gender: Male
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #112 - Nov 10th, 2007 at 10:41pm
Print Post  
Installed this on my test board by hand and it seems to work properly with YaBB 2.2 .

You may want to wait till the author checks it out before using on a live 2.2 board
  
Back to top
IP Logged
 
steven
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 58
Joined: Jul 17th, 2007
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #113 - Nov 11th, 2007 at 5:44pm
Print Post  
Hello any one still using this mod ?
I have some problem with this mod .
I have install and without any error , but when i click on custom page button the site have direct to blank page .

What i need to write in "HTML to print:" ?
I just put the link of the site in the box .

Hope any one can help me solve this problem .
And i have waiting Yabb2.2 coming this mod .

Thanks . 
  

Custom_Page_Blank.png ( 22 KB | Downloads )
Custom_Page_Blank.png
Back to top
 
IP Logged
 
steven
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 58
Joined: Jul 17th, 2007
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #114 - Nov 12th, 2007 at 11:56am
Print Post  
Any one can teach me how to solve the problem ?
  
Back to top
 
IP Logged
 
ccarr
Ex Member


Re: Custom Page Mod 0.2 - Add more webpages!
Reply #115 - Nov 12th, 2007 at 1:04pm
Print Post  
Hi Steven

I use this mod all the time and have 24 cutom pages and 4 of these are on my yabb menu bar.

It looks as if your custom page is working ok. You probably just need to add some html now.

Probably the simplest way would be for you to create a webpage in your favorite html editor and then just copy the html that you want and paste it into the custom page text box.  Wink
  
Back to top
 
IP Logged
 
steven
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 58
Joined: Jul 17th, 2007
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #116 - Nov 12th, 2007 at 7:26pm
Print Post  
Quote:
Hi Steven

I use this mod all the time and have 24 cutom pages and 4 of these are on my yabb menu bar.

It looks as if your custom page is working ok. You probably just need to add some html now.

Probably the simplest way would be for you to create a webpage in your favorite html editor and then just copy the html that you want and paste it into the custom page text box.  Wink


Thanks ccarr , now i understand how to use this mod and all working well .
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #117 - Nov 22nd, 2007 at 11:26am
Print Post  
Hi quersys

qersys wrote on Nov 10th, 2007 at 10:41pm:
Installed this on my test board by hand and it seems to work properly with YaBB 2.2 .

You may want to wait till the author checks it out before using on a live 2.2 board


First:

Have you copy the code form the mod file one to one in the same files from yabb 2.2 ?

Second:

Have you upload the originally files into the zip File from the mod in same folders from yabb 2.2 or have you the files modified before upload ?
  

Greeting ThM
Back to top
 
IP Logged
 
qersys
Senior Member
****
Offline


Yes, I am

Posts: 342
Location: SF
Joined: Dec 29th, 2002
Gender: Male
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #118 - Nov 22nd, 2007 at 4:20pm
Print Post  
yes and yes. Except for adding the menu to default.html, last step I think. I have side menu for pages. here
  
Back to top
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Custom Page Mod 0.2 - Add more webpages!
Reply #119 - Nov 22nd, 2007 at 4:37pm
Print Post  
Ok, thanks .. i will tried it for my Google Membermap with a new link in the yabb tab menue
  

Greeting ThM
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 6 7 [8] 9 10 
Send TopicPrint