Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-30-2009, 12:38 PM
seaweed seaweed is offline
 
Join Date: Jul 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to add image to forum

I would like to add a small clickable image in the individual forum/title/header on Main forum page/ index page. Can someone point me to the code where i would insert picture or an alternative method. If this has been posted before I can follow links.
Thanks so much.
Seaweed
Reply With Quote
  #2  
Old 05-30-2009, 04:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are going to put it in your header or navbar and only want it to show on the index page, then wrap a condition around it:
HTML Code:
<if condition="THIS_SCRIPT == 'index'">
your banner
</if>
Reply With Quote
  #3  
Old 05-30-2009, 05:48 PM
seaweed seaweed is offline
 
Join Date: Jul 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im sorry, i am not articulating myself very well. This is what i was trying to convey.
Attached Images
File Type: jpg picforum.jpg (30.7 KB, 0 views)
Reply With Quote
  #4  
Old 05-30-2009, 06:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, so you wanted to know what template to add the code to.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Reply With Quote
  #5  
Old 06-12-2009, 04:57 PM
seaweed seaweed is offline
 
Join Date: Jul 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok,
I have created the image, I have uploaded it the server, I have viewed the index page source, located the the Forum/catagory, and the sub - forum in which i want to add the image. However when i try to find the corresponding part by searching the template, i can find the template but the the code on the index page doesnt seem to match the code in the template. I am trying this on a hidden part of the forum, but if you can help me figure it out on the main part im sure i can carry it over and replicate it.
seaweed
Reply With Quote
  #6  
Old 06-12-2009, 06:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why don't you post exactly what you have done (code changes - please use the tags) and what the result is (an image or better yet, a link).
Reply With Quote
  #7  
Old 06-15-2009, 01:23 PM
seaweed seaweed is offline
 
Join Date: Jul 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your patience in trying to help me, Im deffinatly a newb. Here is a link to a competitor site , if you croll down the main page you will see similar images adds. This what im trying to accomplish. I want to try and add animated gif for the different clubs and organizations for the different regions.

The link to my main page on my forum
Im not sure how to answer you questions. When i view the source of the index i can see wherr in the code i want to insert the code for the omage and a hyperlink, but when i try to go through the template I can not find it.

Lets try to make it work with this forum on the mainpage- Announcements, should be the very first forum.

Seaweed
Reply With Quote
  #8  
Old 06-15-2009, 02:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you find the templates to modify by using the method I posted? That is the first step. Then show us what you have tried to do so far - exactly where you tried to make the changes.
Reply With Quote
  #9  
Old 06-15-2009, 04:16 PM
seaweed seaweed is offline
 
Join Date: Jul 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I view the source of the main page- I "find" the term/forum title-Florida Gulf Coast

I changed from Term"annoucements" to "Florida Gulf Coast" because it seemed to conflict with vb announcement manager
Code:
<!-- END TEMPLATE: forumhome_forumbit_level2_post --><!-- BEGIN TEMPLATE: forumhome_forumbit_level2_post -->
<tr align="center">
	<td class="alt2"><img src="images/statusicon/forum_new.gif" alt="" border="0" id="forum_statusicon_35" /></td>
	<td class="alt1Active" align="left" id="f35">
		<div>
			<a href="forumdisplay.php?f=35"><strong>Florida Gulf Coast</strong></a>
			<span class="smallfont">(35 Viewing)</span>
		</div>
		<div class="smallfont">Trip reports from the West Coast of FL.</div>
		
		
	</td>
	<td class="alt2"><!-- BEGIN TEMPLATE: forumhome_lastpostby -->

<div class="smallfont" align="left">
	<div>
		<span style="white-space:nowrap">
		<img class="inlineimg" src="images/icons/icon1.gif" alt="" border="0" />
		
		<a href="showthread.php?goto=newpost&amp;t=13629" style="white-space:nowrap" title="Go to first unread post in thread 'Destin charters?'"><strong>Destin charters?</strong></a></span>
	</div>
	<div style="white-space:nowrap; float:left">
		by <a href="member.php?find=lastposter&amp;f=35" rel="nofollow">RaginCajun</a>
	</div>
	<div align="right" style="white-space:nowrap">
		Today <span class="time">04:05 PM</span>
		<a href="showthread.php?p=127900#post127900"><img class="inlineimg" src="images/buttons/lastpost.gif" alt="Go to last post" border="0" /></a>
	</div>
</div>

<!-- END TEMPLATE: forumhome_lastpostby --></td>
	<td class="alt1">2,021</td>
	<td class="alt2">21,515</td>
	
</tr>

<!-- END TEMPLATE: forumhome_forumbit_level2_post --><!-- BEGIN TEMPLATE: forumhome_forumbit_level2_post -->
<tr align="center">
	<td class="alt2"><img src="images/statusicon/forum_new.g
Next I go back to vb->Styles & Templates-->Search Templates-->Search for Text "Florida Gulf Coast"
Nothing shows up

Next I look at source again, This stands out to me "forumhome_forumbit_level2_post"
so go back to the "Search in Templates" and search for "Florida Gulf Coast" and that text isn't found...... so now Im stumped.
But that is the step by step so far
thanks
Reply With Quote
  #10  
Old 06-15-2009, 10:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a template - the exact text doesn't show up in them, just the html. So, using Florida Gulf Coast in your example, look for the html in this line:
HTML Code:
<a href="forumdisplay.php?f=35"><strong>Florida Gulf Coast</strong></a>
            <span class="smallfont">(35 Viewing)</span>
That looks just like these lines in the template:
HTML Code:
<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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:24 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.03895 seconds
  • Memory Usage 2,275KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete