I need help - Logo by category
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #5
RE: I need help - Logo by category
Sin Template Conditionals {$GLOBALS['fid']} debería mostrar el FID de tu foro.

Code:
<img src="{$mybb->settings['bburl']}/images/logo{$GLOBALS['fid']}.png">


Asi seria en el foro con FID "5"

Code:
<img src="{$mybb->settings['bburl']}/images/logo5.png">


Y si {$GLOBALS['fid']} no esta definido (en el portal no lo esta) seria así:

Code:
<img src="{$mybb->settings['bburl']}/images/logo5.png">


{$GLOBALS['fid']} deberia funcionar en paginas como forumdisplay, showthread, newthread, editpost, newreply (básicamente todas las paginas donde puedes usar un estilo por foro).

Si usas Template Conditionals, algo así funcionaria en el portal:

Code:
<img src="{$mybb->settings['bburl']}/images/logo<if $GLOBALS['fid'] then>_{$GLOBALS['fid']}<elseif THIS_SCRIPT == "portal.php" then>_portalX</if>.png">


Espero haberme explicado bien Smile


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
07-21-2013 02:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
I need help - Logo by category - Jaizu - 07-09-2013, 07:21 PM
RE: I need help - Logo by category - Jaizu - 07-09-2013, 08:17 PM
RE: I need help - Logo by category - Jaizu - 07-20-2013, 09:02 AM
RE: I need help - Logo by category - Sama34 - 07-21-2013 02:02 PM
RE: I need help - Logo by category - Jaizu - 08-22-2013, 01:06 AM

 Standard Tools
Forum Jump: