vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Add Icons to ForumHome or/and Forumdisplay by Uploaded images (https://vborg.vbsupport.ru/showthread.php?t=153922)

vuiveclub 07-30-2007 10:00 PM

Add Icons to ForumHome or/and Forumdisplay by Uploaded images
 
I've just read this Thread (https://vborg.vbsupport.ru/showthread.php?p=1306419) by powerful_rogue .
Then I think that no one did this way before.

So here is the tutorial.

Open template forumhome_forumbit_level2_post => For Forumhome only!

Find:

HTML Code:

            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
Add before:

HTML Code:

<! -- forum icon by www.vuiveclub.net -->
      <if condition="THIS_SCRIPT === 'index'">
<table>
    <tr>
  <td>
<img border="0" width="60" height="60" src="images/$forumid.gif"/>
        </td></if>
        <td>
<! -- / end forum icon -->
</if>

Then Find:

HTML Code:

    <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
Add before too:

HTML Code:

<! -- end forum icon by www.vuiveclub.net -->
      <if condition="THIS_SCRIPT === 'index'">
</tr>
</table>   
</td>
</if>
<!-- / end forum icon -->

Save and Done!

Make sure that these 2 conditionals are the same!

For Forumdisplay too - edit template forumhome_forumbit_level1_post

Find:
HTML Code:

            <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
            <td>
            <div>

Add below:
HTML Code:

<!-- forum icon -->
<table> <tr> <td> <img src="images/$forumid.gif" border="0" width="60" height="60" align="left" />
<!-- / forum icon -->

Find:
HTML Code:

        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>

Add before:
HTML Code:

        <!-- end forum icon --> </td></tr></table><!-- / end forum icon -->
Now You have to Upload your Icons to images/$forumid.gif
(Change images/ to your own folder)


If you wanna Show Icons for Forumhome, Forumdisplay and sub-Forumdisplay - Delete conditionals
Show Icons on Forumhome only - Leave these conditions default
Show Icons on Forumdisplay only - Do not Edit forumhome_forumbit_level2_post, edit forumhome_forumbit_level1_post only.

And more ? :confused:

Demo: http://www.vuiveclub.net/diendan/

PS: Sorry for my Bad English :D If you don't understand anything, reply here!

abdulla1 07-31-2007 11:06 PM

Nice mod, reserved! :)

Wayne Luke 07-31-2007 11:15 PM

Changing your conditional to simply state:

<if condition="THIS_SCRIPT === 'index'">

Will get you the same results and probably be a lot less resource intensive. Instead of two function calls within an IF statement, you just have the comparison you want.

jmw 09-15-2007 01:13 AM

Great hack. Thanks vuiveclub. Will install soon.

rayw 09-15-2007 11:28 PM

Nice work! Installed and working fine at www.itresource.com.au

Cheers! :)

MR.BOSS 09-16-2007 12:45 AM

what names should i name my icons, so that they should be viewed?

thanks

rayw 09-16-2007 12:55 AM

Quote:

Originally Posted by MR.BOSS (Post 1339828)
what names should i name my icons, so that they should be viewed?

thanks

*.gif

* represents the number of your forum.

MR.BOSS 09-16-2007 01:22 AM

i tried but nothing happened only x appears

MR.BOSS 09-16-2007 01:24 AM

what templates should i edit, the first 2 only or the all 4..

rayw 09-16-2007 01:40 AM

Are you placing the images in the forum_root/images folder?

Quote:

Originally Posted by MR.BOSS (Post 1339849)
what templates should i edit, the first 2 only or the all 4..

forumhome_forumbit_level2_post
forumhome_forumbit_level1_post


Those two should do the job nicely.

Mark K 09-19-2007 09:49 AM

How would i get this so the images appear right aligned after the forum description?

edit: nm done it

bandarsq 10-19-2007 09:22 PM

nice hack

I installed it and I got the Forum Name showing twice. anyway around this?
Forum is an Arabic.

g00gl3r 10-29-2007 02:13 AM

Any way of adding the forum title as the ALT tag?

g00gl3r 10-29-2007 02:16 AM

Found it. lol You add
Code:

alt="$forum[title]"
to the images source code.

Roughnek29 10-30-2007 02:56 PM

how do you achieve this?

http://i161.photobucket.com/albums/t225/zaibo155/ff.jpg

Roughnek29 10-30-2007 05:11 PM

Please Help

GYSMO 03-23-2008 06:24 PM

Quote:

Originally Posted by Wayne Luke (Post 1306596)
Changing your conditional to simply state:

<if condition="THIS_SCRIPT === 'index'">

Will get you the same results and probably be a lot less resource intensive. Instead of two function calls within an IF statement, you just have the comparison you want.

can you describe more the how to sorry I did tried and not working

other thing is for one reason or an other I lost the mouse radio sellection click and seem now only working with the wheel to sellect language and multi menu tad boxes

great hack

NeoAntrax 04-10-2008 04:02 PM

I got error when i go modify forumhome_forumbit_level2_post

Quote:

The following error occurred when attempting to evaluate this template:

The conditional on line 14 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.


This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
This is my template
Code:

<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
        <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
                <div>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                </div>
                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
        <td class="alt1">$forum[threadcount]</td>
        <td class="alt2">$forum[replycount]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if>
</tr>
$childforumbits


thanh 08-30-2008 02:10 PM

Hi ,

I've got the same error

please have a version for vbb 3.7.x
Thanks


All times are GMT. The time now is 06:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02263 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (8)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete