Jump to content

Smf Button help


DAVC

Recommended Posts

any can help me i use smf forum i instal mod Aeva Media i want make creat button Media when click goes here

http://warez33.x10hosting.com/forums/index.php?action=media;sa=album;in=1

 

I cant see where the buttons goes.

But you must to be scripter to do such a change.

Link to comment
Share on other sites

I think index.template  

Open it

Search for

 if ($context['current_action'] == 'search2')

     $current_action = 'search';

Add after that this

if ($context['current_action'] == 'Button name')

     $current_action = 'shop';

Search For

// Show the [help] button.

                             echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

 

Add this after that

// Show the [button Name] button.

                             echo '<li><a' , $current_action=='Button name' ? ' class="current"' : '' , ' href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';

 

Link to comment
Share on other sites

Search index.php for this:

<li><a  href="http://warez33.x10hosting.com/forums/index.php?action=register"><span>Register</span></a></li>

 

And below that add this line

 

 

<li><a  href="http://warez33.x10hosting.com/forums/index.php?action=media"><span>Media</span></a></li>

 

 

 

Link to comment
Share on other sites

Search index.php for this:

<li><a  href="http://warez33.x10hosting.com/forums/index.php?action=register"><span>Register</span></a></li>

 

And below that add this line

 

 

<li><a  href="http://warez33.x10hosting.com/forums/index.php?action=media"><span>Media</span></a></li>

 

 

 

 

He won't really archive anything by doing that.The link should be there, but the function won't work.Is this a mod or something? :S

Link to comment
Share on other sites

He won't really archive anything by doing that.The link should be there, but the function won't work.Is this a mod or something? :S

he added the mod but there wasnt any button so he have to create one himself

 

its a simple redirect link, isn't it? D:

Link to comment
Share on other sites

Yeah I just think that he has to add:

 

if ($context['current_action'] == 'Button name')
      $current_action = 'shop';

 

this too in index.template.I'm not sure though.Isn't there any guide or something, installing that mod?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...