News:

Join the Facebook Fan Page.

Main Menu

Menu Icons

Started by Mick., December 13, 2010, 05:13:55 PM

Previous topic - Next topic

BaghdadGhost

hi everyone,

how about the social groups menu icon


this is what I got in subs for sgroups


'sgroups' => array(
'title' => !empty($modSettings['sgroups_menu_title']) ? $modSettings['sgroups_menu_title'] : $txt['sgroups_text'],
'href' => $scripturl . '?action=sgroups',
'show' => allowedTo('sgroups_view'),
'sub_buttons' => array(
),
     ), 



thanks in advance

Kindred

find an icon that you like in the famfamsilk set and then add the image code into the array just like it was added for the other menu items.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

BaghdadGhost

thanks for the fast respond. although I am not that good, but I already tried that and it did not work

could u please write it for me, assuming that my image will be (groups)


thanks

BaghdadGhost

ok this is what happened before

if i put it like this

'sgroups' => array(
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/groups.png" alt="'.$txt['sgroups']. '"/>&nbsp; ' . $txt['sgroups'],
'href' => $scripturl . '?action=sgroups',
'show' => allowedTo('sgroups_view'),
'sub_buttons' => array(
),
     ), 



it gives me the image without any title


and if I put it like this



'sgroups' => array(
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/groups.png" alt="'.$txt['sgroups_text']. '"/>&nbsp; ' . $txt['sgroups_text'],
'href' => $scripturl . '?action=sgroups',
'show' => allowedTo('sgroups_view'),
'sub_buttons' => array(
),
     ), 



it gives me an error



help plz

Kindred



'title' => '<img align="absMiddle" src="' . $settings['images_url'] . '/menu_icons/groups.png" alt="' . $txt['sgroups_text'] . '"/>&nbsp;' . !empty($modSettings['sgroups_menu_title']) ? $modSettings['sgroups_menu_title'] : $txt['sgroups_text'],
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

BaghdadGhost

thanks for your support Kindred.


I tried the code but no changes at all. I made sure that the image is there.


MrGrumpy

See if this works

'sgroups' => array(
'title' => !empty($modSettings['sgroups_menu_title']) ? $modSettings['sgroups_menu_title'] : '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/groups.png" alt="'.$txt['sgroups_text']. '"/>&nbsp; ' $txt['sgroups_text'],
'href' => $scripturl . '?action=sgroups',
'show' => allowedTo('sgroups_view'),
'sub_buttons' => array(
),
     ), 
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

BaghdadGhost

error

/public_html/Sources/Subs.php on line 4321


which is the same line of tittle

MrGrumpy

Oh i did  missed a "." out of that line, so try this 1


'sgroups' => array(
'title' =>!empty($modSettings['sgroups_menu_title']) ? $modSettings['sgroups_menu_title'] : '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/groups.png" alt="'.$txt['sgroups_text']. '"/>&nbsp; ' . $txt['sgroups_text'],
'href' => $scripturl . '?action=sgroups',
'show' => allowedTo('sgroups_view'),
'sub_buttons' => array(
),
     ),



or


'sgroups' => array(
'title' =>'<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/groups.png" alt="'.$txt['sgroups_text']. '"/>&nbsp; ' . !empty($modSettings['sgroups_menu_title']) ? $modSettings['sgroups_menu_title'] : $txt['sgroups_text'],
'href' => $scripturl . '?action=sgroups',
'show' => allowedTo('sgroups_view'),
'sub_buttons' => array(
),
     ),


Sorry I'm not an expert with this just having a bit of a guess
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

BaghdadGhost

1 not change

2 with an error


:(

MrGrumpy

Sorry without installing the groups mod and this mod i can't test it to find a working combination, i'm sure someone will come along soon that can give you the right code
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

BaghdadGhost

Quote from: MrGrumpy on April 06, 2011, 08:36:04 PM
Sorry without installing the groups mod and this mod i can't test it to find a working combination, i'm sure someone will come along soon that can give you the right code

thanks buddy.

really appreciate it

Kindred

The code that I gave you is correct.  Did you clear the cache after making the change?

Are you using a special custom theme?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

BaghdadGhost

no I am not. it is SM2 rc4 default theme

skotinos

see circled in red.
how to fix it?

Kindred

fix the code in subs.php, you are missing the <
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

skotinos

here is the code but I do not know how to fix

'home' => array(
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/0.gif" alt="'.$txt['home']. '"/>&nbsp; ' . $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),

Kindred

looks like this setting is wrong
$modSettings['sp_standalone_url']
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

skotinos


Kindred

no, what I am saying that that the error is occurring in wherever that value is being set. Is that an admin setting for simplePortal?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: