vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   text replace with images (https://vborg.vbsupport.ru/showthread.php?t=312563)

Goomzee 06-30-2014 03:54 AM

text replace with images
 
I have created a forum with the name "Mortal Kombat X" and then i also added some sub-forums and now i want to know how to put small image before sub-forum name for example
sub forums name is Scorpion so i want to put "scorpion" picture before scorpion name.

my website forum www.mknexusonline.com

Dave 06-30-2014 07:58 AM

Is this what you're looking for https://vborg.vbsupport.ru/showthread.php?t=214289?

Goomzee 07-02-2014 04:51 AM

yes but it's show on main forum i am talking about Sub-Forums

darnoldy 07-02-2014 03:46 PM

If you name your images with the name of the sub-forum (i.e. "scorpion.jpg), it is pretty simple to then edit the appropriate template to insert the image where you want it. Which template you need to edit depends on where, exactly, you want the image to appear.

Goomzee 08-27-2014 05:05 AM

i tried not works i really need to change my subforum icon

darnoldy 08-27-2014 05:49 PM

Quote:

Originally Posted by Goomzee (Post 2512822)
i tried not works i really need to change my subforum icon

What did you try? Show us the code. Tell us what template.

How did it "not works"? Tell us what happened.

Goomzee 08-28-2014 04:18 AM

below is my forumhome_forumbit_level2_post coding

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>
<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.gif" border="0" align="right" alt="RSS Feed for $forum[title]" /></a>

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left"/></a>


<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"><a href="member.php?find=lastposter&f=$forum[forumid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$forum[avatarurl]" border="0" /></a><div style="padding-left:36px;">$forum[lastpostinfo]</div></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
this is subforum image link
http://www.mknexusonline.com/forums/...n_subforum.png
and 79 is my forum ID

darnoldy 08-28-2014 05:09 PM

In order for
HTML Code:

<img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left"/>
to call the correct image, you will have to rename the images—and change where you store them.

The above template would look for the image
HTML Code:

images/misc/iconforums/79.gif
your image is
HTML Code:

images/tealblack/statusicon/mkx_raiden_subforum.png
neither the path nor the filename match.

Goomzee 08-29-2014 04:57 AM

sub forum not showing images even my main forum images are disable below is code

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>
<a href="external.php?type=rss2&forumids=$forum[forumid]"><img src="images/misc/rss.gif" border="0" align="right" alt="RSS Feed for $forum[title]" /></a>


<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/tealblack/statusicon/mkx_raiden_subforum.png/$forum[forumid].gif" hspace="4px" align="left"/></a>



<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"><a href="member.php?find=lastposter&f=$forum[forumid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$forum[avatarurl]" border="0" /></a><div style="padding-left:36px;">$forum[lastpostinfo]</div></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

darnoldy 08-29-2014 02:12 PM

You've messed up the file path:
HTML Code:

<img  border="0"  src="images/tealblack/statusicon/mkx_raiden_subforum.png/$forum[forumid].gif"  hspace="4px" align="left"/>
Replace that code with this:
HTML Code:

<img  border="0"  src="images/tealblack/statusicon/mkx_raiden_subforum.png"  hspace="4px" align="left"/>
Then tell us what happens.


All times are GMT. The time now is 01:09 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.01092 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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