Customizing SMF > Modifications and Packages

Regbar warning (Updated for SMF 2.0)

<< < (52/61) > >>

vbgamer45:
Modify themes/default/languages/modifications.english.php

PersianDeveloper:
thanks
and could this modification make any problems while uninstalling the package?

it is SMF 2.0.2

Arantor:
Yup, it won't let you uninstall it properly and you'll have to manually edit it to be able to uninstall it later.

Labradoodle-360:
Actually, I do believe that text strings are stored in a separate file. Which would be relative to the modification name. ./Themes/default/languages/smf-hacks/regbar-warning.english.php. Modifying that file will still allow you to uninstall the modification without issues.

cswatt67uk1:

--- Quote from: vbgamer45 on November 23, 2010, 09:43:50 AM ---You would need to edit the index.template.php file and find the url of the reg bar and point it to that page.

--- End quote ---

Hi Guys

I was trying to set the link in the reg bar to point at a different URL , instead of the register link .. found some posts in this thread regarding how to do this .. BUT   It just says edit the index.template .php file .. I have found the code that needs to be edited but do not know what to do ..

--- Quote ---if($context['user']['is_guest'] && $context['current_action'] != 'register')
         echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"><div id="infobar"><a href="' . $scripturl . '?action=register"><p>' . $txt['regbar_text'] . '</p></a></div></td></tr></table>';


--- End quote ---
Can someone who is in the know , tell me what I need to edit .. ? and the code involved in setting a New Link instead of the Register action .

I am not very good with php or coding

Cheers in Advance

 ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version