Jump to content

Smf Button help


DAVC
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock