vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Images as quick links to forums (https://vborg.vbsupport.ru/showthread.php?t=298141)

Spangle 05-13-2013 10:00 PM

Images as quick links to forums
 
1 Attachment(s)
I wanted to put show some images to act as quick links to forums, to save users scrolling down, I also wanted to show American guests in a friendly way that we are a soccer forum, we Brits hate that word and use football, which can cause confusion.

There is a MOD that does something similar, but it was far too complicated for such a simple exercise.
What I did was create a one row table to display the images, within the Navbar template.

You can see the result here : http//www.talkoftheterrace.net

Here is how to do it :

ACP>Style Manager>Your Style>Edit Template>Navbar & Breadcrumbs>Navbar

Find :
Code:

{vb:rawphrase advanced_search}</a></li>
                                {vb:raw template_hook.navbar_advanced_search}
                        </ul>
                </div>
        </vb:if>
</div>

Add below :
Code:

<table>

<tr>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?104-English-Premier-League"?><img src="images/navicons/epl.png"> </a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?105-Scottish-Football"><img src="images/navicons/spfl.png"> </a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?106-Npower-Championship"><img src="images/navicons/npwr.png"> </a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?107-Npower-Leagues-1-amp-2"><img src="images/navicons/npwr.png"> </a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?109-Champions-League"><img src="images/navicons/ecl.png"> </a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?110-Europa-League"><img src="images/navicons/uropa.png"></a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?108-Cup-Competitions"><img src="images/navicons/cups.png"></a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?111-European-Club-Football"><img src="images/navicons/uefa.png"></a></p></td>
<td align="center"><p><a href="http://www.talkoftheterrace.net/forumdisplay.php?112-Internationals"><img src="images/navicons/fifa.png"></a></p></td>
</tr>
</table>

All you need do is replace those parts in red with the links to your forums, and your images.
My images are 48 x 48 px, I still think they look a little big, resize yours to whatever you want.

Hope this works for you

ProFifaLeagues 05-14-2013 06:07 PM

Looking superb that mate Will install Shortly on our Forums!!! Many thanks Sir

Spangle 05-14-2013 06:19 PM

Quote:

Originally Posted by ProFifaLeagues (Post 2422044)
Looking superb that mate Will install Shortly on our Forums!!! Many thanks Sir

Glad you like it :up:

ProFifaLeagues 05-15-2013 04:33 AM

Quote:

Originally Posted by Spangle (Post 2422048)
Glad you like it :up:

I have a Custom Theme installed and Within the Navbar the Code I need to Find and Add the new below is not in My template.Is there anywhere else I can add this in my Navbar Template?

Spangle 05-15-2013 07:42 AM

Quote:

Originally Posted by ProFifaLeagues (Post 2422140)
I have a Custom Theme installed and Within the Navbar the Code I need to Find and Add the new below is not in My template.Is there anywhere else I can add this in my Navbar Template?

I've had a look at your front page, and I see the problem !!
Try placing it below this :

Code:

<div id="breadcrumb" class="breadcrumb">
Save and refresh

ProFifaLeagues 05-15-2013 02:16 PM

Quote:

Originally Posted by Spangle (Post 2422157)
I've had a look at your front page, and I see the problem !!
Try placing it below this :

Code:

<div id="breadcrumb" class="breadcrumb">
Save and refresh

Thanks Sir will try that this evening once home!!

ProFifaLeagues 05-15-2013 09:45 PM

Quote:

Originally Posted by Spangle (Post 2422157)
I've had a look at your front page, and I see the problem !!
Try placing it below this :

Code:

<div id="breadcrumb" class="breadcrumb">
Save and refresh



Works Superb Sir thank you

marccap 05-16-2013 01:35 PM

Looks good - tagged for later


All times are GMT. The time now is 11:29 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.01313 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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