News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Menu Buttons

Started by 2by2host, September 29, 2008, 07:56:45 PM

Previous topic - Next topic

gene_sc

What I did was, I installed it with the default theme. It did work with that. But the Leviathan theme and other It does not work with.  I was using the theme Leviathan when I uninstalled it. It uninstalled with errors.  No errors were seen on intallation with default theme.

The SMF program was installed by me through the Host CPanel. I upgraded it from 1.16 to 1.1.11. everything went smoothly. I did the button package install with SMF 1.1.11 installed.

http://www.gatewaytoairguns.org [nofollow]

Shooting Air Guns, Hunting, Modifying, Tuning. PCP Air Guns, Springer Air Guns, Single Pump and Multi Pump Air Guns. Plinking Hunting and Field Target Competion with Air Guns.

Siirist

Very well spoken.

Okay, so here's the deal. In MY experience, with Menu Buttons, and using "DIFFERENT" themes,

I had to go to my host and edit the file

FOR EXAMPLE ONLY
First go to themes -> default -> languages -> Modifications.english.php
There should be something to identify the words you are using
like this
$txt['showAwards'] = 'Show Awards';

If you have the "Cloud" theme, you need to go to that theme -> languages -> and see if it has Modifications.english.php   If it doesn't, which it probably won't, I believe you will have to talk to the theme author

Of Course to do any this, the Menu Button Mod has to be installed, AND WHEN INSTALLING make sure to install in OTHER THEMES and hope your theme is listed and it will make the changes for you.

Be Well,
Cloud
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

gene_sc

Thanks Cloud for you support and help. I will come back and post my results.

Thanks again

Gnee
http://www.gatewaytoairguns.org [nofollow]

Shooting Air Guns, Hunting, Modifying, Tuning. PCP Air Guns, Springer Air Guns, Single Pump and Multi Pump Air Guns. Plinking Hunting and Field Target Competion with Air Guns.

gene_sc

Well I know now I am not a coder...:) Trying to figure out how to add button links to the Leviathan Theme has nearly blinded me..:) I have attempted to alter some code but with not luck. I need to hire someone to do the changes I need. It is very important that I get the look and feel the members of the forum like. I have found it in the Leviathan theme but need link buttons to finish it up.

Andy help would be appreciated.

Thanks
http://www.gatewaytoairguns.org [nofollow]

Shooting Air Guns, Hunting, Modifying, Tuning. PCP Air Guns, Springer Air Guns, Single Pump and Multi Pump Air Guns. Plinking Hunting and Field Target Competion with Air Guns.

rock8mail

This Mod can't support chinese language / utf8_general.
Even after i modified the DB still doesn't show, so i suspect is the php code that does the display giving problem ie. translation into/support multi-language.

JungleBunny

Only a BIG THANKS for this great mod !!! :)
Time is gone with the f#u#c#k editing of index.template :=))))

Shades.

Cool! This mod works with RC4! :)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Bugo

Fix for normal UTF-8 text in link names and titles:
<file name="$sourcedir/LoadxLinks.php">
<operation>
<search position="before"><![CDATA[
function loadxLinks()
{
global $db_prefix, $context, $smcFunc]]></search>
<add><![CDATA[, $modSettings, $txt;
$context['character_set'] = empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set']]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
if($func_num_rows($qres) > 0) {

while($row = $func_fetch_assoc($qres)) {
$link = unserialize($row['href']);
$context['xlinks'][$row['id']] = array(
'sort' => htmlentities($row['sort']),
'name' => htmlentities($row['name']),
'href' => $link['href'],
'in_new'=> $link['in_new'],
'title' => htmlentities($row['title']),
'style' => htmlentities($row['style'])
);
}
]]></search>
<add><![CDATA[
if($func_num_rows($qres) > 0) {

while($row = $func_fetch_assoc($qres)) {
$link = unserialize($row['href']);
$context['xlinks'][$row['id']] = array(
'sort' => htmlentities($row['sort']),
'name' => htmlentities($row['name'], ENT_COMPAT, $context['character_set']),
'href' => $link['href'],
'in_new'=> $link['in_new'],
'title' => htmlentities($row['title'], ENT_COMPAT, $context['character_set']),
'style' => htmlentities($row['style'])
);
}
]]></add>
</operation>
</file>


Fix for normal menu in Admin:
<file name="$sourcedir/xLinks.php">
<operation>
<search position="replace"><![CDATA[
$context['admin_tabs'] = array(
'title' => $txt['x-links_manage'],
'description' => $txt['x-links_desc'],
'tabs' => array(
'main' => array(
'title' => $txt['x-links_main'],
'href' => $scripturl . '?action=xlinks',
),
'add' => array(
'title' => $txt['x-links_add'],
'href' => $scripturl . '?action=xlinks;sa=add',
)
)
);
]]></search>
<add><![CDATA[
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['x-links_title'],
'description' => $txt['x-links_desc'],
'tabs' => array(
'main' => array(
'title' => $txt['x-links_main'],
'href' => $scripturl . '?action=xlinks',
),
'add' => array(
'title' => $txt['x-links_add'],
'href' => $scripturl . '?action=xlinks;sa=add',
)
)
);
]]></add>
</operation>
</file>

scvoyager

Could be a nice mod but since I have 30 plus mods that would make my forum be more copyright than content if every minor mod did this. I will wait for one of the other coders come up with one that would have a drop down list with the option to open in a new window.

Maree

I am very much the newbie but would appreciate any help  :)

I have installed this mod and while it works, the button it adds to my menu looks different and rather mismatches the other buttons.

I have smf 1.1.11, I am using a non-default theme (but other posts on this thread suggest it should still work).

The theme I am using is FSProRed

I tried adding the appropriate code to my theme's index.template.php (I have attached this too, my code changes are on it).

The link works, but the button doesn't look the same as the others, it just looks weird and out of place  :-\

Any help would be appreciated  :)

hvsportsman

Does this mod work with 2.0RC5? Thanks.

savy118

Hi guys im in two minds weather to give this mod some thought, im reading in some posts that its spam, i clicked the link to the website and is some sort of web server, my question is ,is that site a scam or spaming site as i wouldnt want people thinking im helping advertise corrupt spamming sites.

altho i wasnt told of advertising before download, i feel its some sort of tresspassing with link there but dont mind to much if his site is ok.

if there are any other mods like this with sub menues could someone give me the name of mod zip file ive searched all terms of sub,menue,child etc but wondering if there is a complete different name to a mod like this.

thanks

savy  :)


MATTEK

Does this work for 2.9 Gold and is there a way to group menu options in drop downs?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

savy118

Quote from: hvsportsman on March 24, 2011, 10:56:55 PM
Does this mod work with 2.0RC5? Thanks.
@hvsportsman yes it does work with 2.0rc5 i had it on mine, but deleted it cause i havent a clue although its explained in first post , i still dunno how to insert code properly, would be good we had a control pannel to do quick edits.


Impsat-1

Mmm..., hey Guys.... If any need here the MOD For SMF 2.0.7 with "spanish_latin-utf8.php" lang, working fine... Great Mod, Thanks 2by2host

Thanks & Regards
Have a Great Time 8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Jade Elizabeth

Quote from: IdanC on January 14, 2010, 08:01:03 PM
to change the location of the new buttons from the end of the list to a custom location -

edit subs.php

change

$buttons[$last_button_idx] = array(
'title' => $button['name'],
'href' => $_href_injection,
'show' => true,
);
}
$buttons['logout']['is_last'] = false;
$buttons[$last_button_idx]['is_last'] = true;


with

$new_buttons[$last_button_idx] = array(
'title' => $button['name'],
'href' => $_href_injection,
'show' => true,
);

$start_new_buttons = 2;
array_splice($buttons, $start_new_buttons, 0, $new_buttons);
}
//$buttons['logout']['is_last'] = false;
//$buttons[$last_button_idx]['is_last'] = true;


just remember to change the value of start_new_buttons

Not sure I understand this....

Can anyone please advise how to move the login/logout/register buttons to the end instead of having the links from this mod at the end?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Kitarist


Methen


Hello, Iam trying to get a mod to work on my site, I tried writing the creator, But never got a reply

Iam using version smf version  2.0.12

The mod iam using is the buttons mod located here:
http://custom.simplemachines.org/mods/index.php?mod=1421

The problem that iam having is when I try to create a link to google for example it puts in http://allbridges.info/test/smf/www.google.com instead of just the google link, I checked several times but it just does the same thing over and over any ideas what may be causing this ?
Somebody is asking for a Hinne Whooping!

showngo

 see it looks like no further support Here. 
Is there any update for PHP7 or should I install a different button mod?

Ronald_1938

Quote from: showngo on August 01, 2017, 08:17:40 AM
see it looks like no further support Here. 
Is there any update for PHP7 or should I install a different button mod?

Here is a more update Menu http://custom.simplemachines.org/mods/index.php?mod=3310  I use this one on my forum..

Advertisement: