vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Forum Icons ( MyLs1 Style ) (https://vborg.vbsupport.ru/showthread.php?t=192629)

daggz 02-08-2009 08:44 AM

Firstly I love this mod, I applied it to the forum as per your instructions and It works flawlessly
kudos!

just a quick one, any way to make the image the hyperlink for the Thread, I have been inundated by requests for this?

Gladhatter 02-08-2009 08:57 AM

Quote:

Originally Posted by daggz (Post 1737613)
Firstly I love this mod, I applied it to the forum as per your instructions and It works flawlessly
kudos!

just a quick one, any way to make the image the hyperlink for the Thread, I have been inundated by requests for this?

I am not a coder but the answer is that any elementary coder can do this for you and any image can be made to launch a hyperlink of your choosing.

private_ale 02-08-2009 09:34 PM

Quote:

Originally Posted by daggz (Post 1737613)
just a quick one, any way to make the image the hyperlink for the Thread, I have been inundated by requests for this?

I assume you want the image to link to the latest post for that forum?
Try this:

Code:

<div style="float: left; margin: 0px; padding: 0px;"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>">
<img src="$stylevar[imgdir_statusicon]/$forumid.gif" alt="" border="0" /></a>&nbsp;</div>

[EDIT]:
After rereading your post, you might have wanted the image to actually just link to the forum, If so then use this:
Code:

<div style="float: left; margin: 0px; padding: 0px;"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">
<img src="$stylevar[imgdir_statusicon]/$forumid.gif" alt="" border="0" /></a>&nbsp;</div>

:up:

daggz 03-13-2009 06:57 AM

Thank you so much this is so sweet

CapitanoN6 03-15-2009 07:10 AM

why only 40x40 px???????

CapitanoN6 03-17-2009 06:12 PM

run on 3.8?

dmarks83 03-18-2009 04:43 PM

Ok so im having trouble getting this mod to work. here is what i have in:

forumhome_forumbit_level2_post:

<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /><div style="float: left; margin: 0px; padding: 0px;">
<img src="$stylevar[imgdir_statusicon]/$forumid.gif" alt=""/></div>

<div></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<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">$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

I have added a image called 8.gif to the directory > images/statusicon/ yet it still doesnt show

www.berry365.com is the site im trying to get this to work on

any help appreciated

Feanor_87 03-24-2009 06:16 AM

Quote:

<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">

<div style="float: left; margin: 0px; padding: 0px;">
<img src="$stylevar[imgdir_statusicon]/$forumid.gif" alt=""/></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="alt1" align="center">$forum[threadcount]</td>
<td class="alt2" align="center">$forum[replycount]</td>
<td class="alt2" align="center">$forum[lastpostinfo]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>
</tr>
$childforumbits
Same here, it doesn't seem to work for custom templates :| Only the default vBulletin template

dmarks83 04-01-2009 05:35 PM

that is a bit of a bummer if it doesnt work for custom templates.... $20 via paypal to anyone who can get it working on my site.

email me daniel.marks@berry365.com

Danny

dmarks83 04-03-2009 04:51 PM

OK so i fixed this and this is how. I was putting the images in the wrong folder... i was putting them in the default images >> status icons folder.... If you are using a template remember to drop the images in the relevent status icon folder for that template in my case that was located here:

forum/images/sentosa/statusicon/xx.gif

Also i placed the code in a slightly different place than what was suggested by the OP. I have highlighted where i put it in red. Hope this helps!

<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
<div></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]"><div style="float: left; margin: 0px; padding: 0px;">
<img src="$stylevar[imgdir_statusicon]/$forumid.gif" alt=""/></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">$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


All times are GMT. The time now is 12:47 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.01151 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete