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 02-04-2006, 05:07 AM
Strat Strat is offline
 
Join Date: Jan 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How can I add banners between forums & center them?

Here's an example of another forum that managed to do exactly that, *plus* manage to make those forums collapsable.

Any ideas?

http://www.thefenderforum.com/forum/index.php?
Reply With Quote
  #2  
Old 02-04-2006, 02:01 PM
MortysTW MortysTW is offline
 
Join Date: Mar 2005
Location: Southern CA, USA
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pretty simple actually.

AdminCP>Forums Manager>.........

Click on the Forum Name you want to turn into an image.

When it opens, in the TITLE box, just put typical html in the title box instead of just a textual Title.

For example: Instead of Tips & Tricks
<img src="http://www.YourSite.com/TipTricks.gif" target="_top">

Get it? Hope that helps. I just tried it on my vb and it works great.

Keep in mind that this will increase bandwidth and slow down page load since it is an additional image. So keep those images to a minimum file size.
Reply With Quote
  #3  
Old 02-04-2006, 07:07 PM
Strat Strat is offline
 
Join Date: Jan 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THAT'S IT!!!!

OMG, thank you!!

I now have 2 simple follow-up questions. This is now what I get ; http://img.photobucket.com/albums/v1...s991/voila.jpg

1. How can I eliminate the white border around it?
2. How can I make the pic non-clickable?

Again, thank you *so* much!

Also, how can I make the image *not* appear when in a forum?

http://img.photobucket.com/albums/v1...1/example2.jpg
Reply With Quote
  #4  
Old 02-04-2006, 07:25 PM
MortysTW MortysTW is offline
 
Join Date: Mar 2005
Location: Southern CA, USA
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, in your <img srcksdfjlksjfslkfjsdlkfjsdlkfj part,

Before you close the tag, put border="0"

<img src="imageurl.gif" border="0">

And as for making it NOT clickable, you're going to have to go and edit some templates. Its within the templates that all that information is stored.

Off the top of my head, you'll need to edit templates:

ForumHome
ForumDisplay
ShowThread

Mind you, on ForumHome, you will just be looking to remove the <href=" part but when in the ShowThread and ForumDisplay part, you're going to want to remove the entire part that is displaying the Forum Title.

Try and look around for it yourself. If you are still lost, come back here and ask again and I'll look around. But I'm busy setting up a friends site with VB today and I gotta focus on them.

-------------------------------
Added note, not sure how new you are to vB.

But you can always get a good start with what template to edit by looking at the url of your page. For example to edit the /showthread.php page, you edit the showthread template. Good luck.
Reply With Quote
  #5  
Old 02-04-2006, 08:39 PM
Strat Strat is offline
 
Join Date: Jan 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, Morty!

Thanks for taking the time to answer my queries! With your tip, I managed to eliminate the white border around the GIF.

I'm quite new to vB, actually. Learning a *lot,* but nevertheless am green when it comes to decoding code and toying with it. It's somewhat hard for me to guess what this or that string of code will do. I started by deleting the "Title" line in the FORUMDISPLAY template, but that didn't have an effect.

PHP Code:
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title
What I need to do is remove the GIF from the page when viewing all the threads and the page when reading a thread. In both cases, the GIF still shows, screwing the tables of the forum. I looked throughout the modifications section of this forum and the vbulletin.com forum, but no go. Hopefully, you can find a few min to show me what needs to be done. Here are some pics to show what I'm talking about.

http://img.photobucket.com/albums/v1...rumdisplay.jpg

http://img.photobucket.com/albums/v1...threadview.jpg
Reply With Quote
  #6  
Old 02-04-2006, 09:20 PM
MortysTW MortysTW is offline
 
Join Date: Mar 2005
Location: Southern CA, USA
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright children, gather around. Daddy is going to read you a story.........


There once was a Admin traveling alone through the Template Forrest, looking for a template called NavBar which was the last place an Admin would of looked. And in this NavBar template, a particular Admin did a FIND search for the query

PHP Code:
$navbits[breadcrumb
and when this Admin found such a thing, instead of deleting it, they simply made it look like

PHP Code:
<!--$navbits[breadcrumb]--> 
which is often known as "commenting out". By commenting it out with the <!-- and the ---> they never lost the code, but just made it invisible to the browser in a way.

The Admin liked this, they liked it very much. One thing they noticed by doing this though, it removed part of the bread crumb trail on their forumdisplay page and their showthread pages where it only listed their main forum page and the actual forum they are currently in, removing the Category name. And this was a decision they must live with if they chose to have images on their ForumHome page. Yet it did match the Guitar Site they had once referred to.

Now this greedy little Admin wanted much much more. They also wanted to make the images on their ForumHome just images and remove the link ability from them, so they traveled onward through the Template Forrest.

Eventually the Admin came across a strange Template creature known as a FORUMHOME_FORUMBIT_LEVEL1_NOPOST and the Admin killed the creature and cut him open and searched for the $forum[title] within the dead creatures body. When he finally found it amongst other things that looked like

PHP Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a
So the Admin quickly commented out the "linking" parts so that it looked more like this

PHP Code:
<!---<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">--->$forum[title]<!---</a>---> 
And again, the Admin was happy. And the Admin remembered, that if he ever realized those images were appearing as links that he must go and kill more creatures, creatures known as forumhome_forumbit_level1_post, forumhome_forumbit_level2_nopost, and forumhome_forumbit_level2_post. And when he found these creatures, he once again would cut them open and look for $forum[title] and comment the linking parts out before and after as they had once before.
.
.
.


Damn the kids fell asleep. So much for the rest of the story. At least the Admin is happy now. :banana:
Reply With Quote
  #7  
Old 02-04-2006, 10:57 PM
Strat Strat is offline
 
Join Date: Jan 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Morty, you crack me up! I was *this* close to going to a blacksmith to get myself a broad sword and chain mail! LOL!

That was very cool. I followed your directions and the images aren't linked, anymore. I figured there might be some HTML code I could surround the "HREF=" tag with to cancel linkage, but it doesn't appear to be the case.

I have 2 small problems that are my last.

1. My forums' descriptions don't appear no matter what. Checked my settings, but still no go.
2. If you go to http://www.thefenderforum.com/forum/...isplay.php?f=4 you'll notice that they only have the root and current directory being displayed. My theory is they managed to escape the category image from being shown by deleting the value tied to it. Unfortunately, I don't know what that value is, so I'm stuck with this --> http://img.photobucket.com/albums/v1...rumdisplay.jpg

Any idea?

BTW, I'd be curious to know which msg boards you're setting up.

Thanks again for everything! I should give you a co-credit for the design. LOL!
Reply With Quote
  #8  
Old 02-05-2006, 07:18 PM
MortysTW MortysTW is offline
 
Join Date: Mar 2005
Location: Southern CA, USA
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The part that would of fixed all that was in teh NAVBAR template I mentioned.

I fixed you up, you're good to go. This is the part I edited and just commented out the navbits breadcrumb tag thingy.

PHP Code:
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]accesskey="1">$vboptions[bbtitle]</a></span> <!--$navbits[breadcrumb]--></td
Good to go! :banana:
Reply With Quote
  #9  
Old 02-05-2006, 09:03 PM
Strat Strat is offline
 
Join Date: Jan 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could have sworn I had checked that at least a couple of times! Man, you rock!

Now, I only have one thing left to fix for my forum to be "perfect," but you've gone **WAY** above & beyond the call of duty, here. I'll ask somebody else. Thanks a million!

You're welcome to visit the forum whenever you want, of course.
Reply With Quote
  #10  
Old 02-05-2006, 09:27 PM
MortysTW MortysTW is offline
 
Join Date: Mar 2005
Location: Southern CA, USA
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Happy to have helped. I had no idea the images like that were even possible until you brought up the question. So it was kinda fun trying to figure this all out.

Glad it worked out for ya!
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 04:50 PM.


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.04668 seconds
  • Memory Usage 2,275KB
  • Queries Executed 11 (?)
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
  • (6)bbcode_php
  • (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
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete