Welcome, Guest. Please Login or Register.
June 01, 2025, 06:10:54 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  How Do I add a new button to my yabb menu? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: How Do I add a new button to my yabb menu?  (Read 1038 times)
CrimSon_ReD
Full Member
***
Posts: 170


RED, WHITE & BLUE - enUFF saiD!!

WWW
How Do I add a new button to my yabb menu?
« on: November 01, 2002, 06:34:03 PM »
Reply with quote

And how do I implement it to work so that when I click
on that button section everything loads as the other buttons do in its own php page?

Any help will be greatly appreciative.

I lost my whole domain and database in a crash and I would love to get it back up with all the features I
had once implemented!
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:How Do I add a new button to my yabb menu?
« Reply #1 on: November 01, 2002, 08:46:51 PM »
Reply with quote

add it in Subs.php -> template_header() -> $yymenu
and u can link it anywhere u want
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
CrimSon_ReD
Full Member
***
Posts: 170


RED, WHITE & BLUE - enUFF saiD!!

WWW
Re:How Do I add a new button to my yabb menu?
« Reply #2 on: November 01, 2002, 10:26:43 PM »
Reply with quote

Cool is there a way I can implement some type of script for lets say the new section
I will make that will actually load with the default
template file as does the index.cgi?

Im a newbie at this modifying thing so can you please
explain it to me in a php for idiots kinda description.
« Last Edit: November 02, 2002, 12:26:56 AM by CrimSon_ReD » Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:How Do I add a new button to my yabb menu?
« Reply #3 on: November 02, 2002, 01:17:12 AM »
Reply with quote

in index.php add another line for action
example: action == 'chat'
then load the file that u're using in that file, use template_header() at the beginning of the html and footer() & obExit() at the end
a sample page:
<?phpfunction showPage() {   global $username,$txt,$scripturl;   global $settings,$yytitle;   $yytitle = "NewPage";   template_header();       print <<<EOT<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor"><tr><td class="windowbg">  ///// Put HTML Codes here \\\\\</td></tr></table>EOT;   footer();   obExit();}?>

Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
CrimSon_ReD
Full Member
***
Posts: 170


RED, WHITE & BLUE - enUFF saiD!!

WWW
Re:How Do I add a new button to my yabb menu?
« Reply #4 on: November 03, 2002, 12:23:04 AM »
Reply with quote

BTW Dude:
That Gallery script you are working on is kickass...

I see how you added the other button in.

I tried desperately to do that and all I got was errors..

Dammit and the php page I made popped up with nothing.....

What i would give for a step by step tutorial with
examples.....
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  How Do I add a new button to my yabb menu? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.747 seconds with 21 queries.