AdminAddict

Join Us Members List Today's Posts
Go Back   AdminAddict > Forum and Community Development > Community/Forum Software > vBulletin

Discuss Creating your own relevant replacements in vBulletin in vBulletin at AdminAddict
In vbseo you get relevant replacements, but unfortunately sometimes you cant afford vbseo for all your sites. Would anyone recommend ...

Welcome to the AdminAddict.

Hello and welcome to AdminAddict! The one-stop resource for forum and community administrators.

We offer a variety of content and resources, but in order to have access to all of our free tips and tools, you need to register a FREE account.

Registration is free, quick and easy.



(Register to remove this advertisement)
Reply
 
Share Thread Tools Search this Thread
Old October 3rd, 2009, 09:13 AM   #1
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Creating your own relevant replacements in vBulletin

In vbseo you get relevant replacements, but unfortunately sometimes you cant afford vbseo for all your sites. Would anyone recommend replicating them using template conditionals on forumdisplay per forum and using h2 etc within them instead of forking out for vbseo?

The only problem I can see is if you rename a forum maybe, but if you dont do that and theyre set in stone surely this would be fine

What are your thoughts on this?

Thanks.
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 09:28 AM   #2
Nick's Avatar
Posts: 7,156


Default Re: Creating your own relevant replacements

Yes, this is a highly recommended tip to, recommended to users who want to optimize their vBulletin installation without vBSEO. On my new parrot forum, I just set this up a few days ago. It looks no different than the default text, but it is now using h1 and h2 tags. The one thing I cannot get is the little bit of text to show up in the relevant replacement (the thread preview), but that's okay.

Anyways, if you want to set it up how I have it, first check it out: here and here. (See the green box above the thread and above the thread listing).

Here's the code needed to display this: Try it on a test style first! - In the navbar template, find:
Code:
<!-- / breadcrumb, login, pm info -->
add below it: (there is most likely a portion of this code already there; replace it with this)
Code:
<br />
<if condition="$show['forumdesc']">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
        <td class="alt1" width="100%">

<if condition="THIS_SCRIPT != 'showthread'">
<if condition="THIS_SCRIPT != 'forumdisplay'">
<strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span>
</if></if>

<if condition="THIS_SCRIPT == 'showthread'">Discuss <h1 class="myh1">$thread[title]</h1> in the <h2 class="myh2">$foruminfo[title_clean]</h2> section at TalkParrots.
</if>

<if condition="THIS_SCRIPT == 'forumdisplay'">
<h1 class="smallfont"><strong>$foruminfo[title_clean]</strong></h1>
<h2 class="smallfont">$foruminfo[description]</h2>
</if>

</td>
    </tr>
    </table>
    <br />
</if>
H tag CSS Definitions:
By default, h-tags are large and force a line break. This will make your custom descriptions/titles look rather awkward. To override this natural behavior, add the following to the Additional CSS Definitions box in the style manager:
Code:
/* ***** H1 Tags ***** */
h1.myh1 {font: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 11px;
color: #000000; font-weight: bold;}

h2.myh2 {font: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 11px;
color: #000000; font-weight: bold;}

h2.myh3 {font: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 11px;
color: #000000; font-weight: none;}


h1,h2,h3,h4,h5,h6 {display:inline;}
You can customize the definitions to your liking (font, size, color, etc.)
Best Regards,
Nick


Support AdminAddict // Purchase from the following reputable vendors:
HostGator / Liquid Web / DriveThruOnline - Professional vBulletin Products / NameCheap Domains

Compare Hosting Plans
VPSDedicated Servers


Nick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

2 out of 2 members found this post helpful.
Old October 3rd, 2009, 09:31 AM   #3
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements

This is awesome Nick! So you can use the variables like: $foruminfo[title_clean] without vbseo? I was thinking I would only be able to do these manually lol I am glad this is possible

Thank you!
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 09:32 AM   #4
Nick's Avatar
Posts: 7,156


Default Re: Creating your own relevant replacements

Quote:
Originally Posted by Michael View Post
This is awesome Nick! So you can use the variables like: $foruminfo[title_clean] without vbseo? I was thinking I would only be able to do these manually lol I am glad this is possible

Thank you!
Seeing as these are in the default templates and are used by default, yes you can use them.
Best Regards,
Nick


Support AdminAddict // Purchase from the following reputable vendors:
HostGator / Liquid Web / DriveThruOnline - Professional vBulletin Products / NameCheap Domains

Compare Hosting Plans
VPSDedicated Servers


Nick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

1 out of 1 members found this post helpful.
Old October 3rd, 2009, 09:35 AM   #5
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements

Excellent, this has made my day, I was actually going to do this by typing in each forum name manually as well as the description! I might actually just use the title to pull that automatically and write up my own descriptions for each one so that it isnt the same as the description on the index, but then again it would be easier doing it your way so im not sure now
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 09:43 AM   #6
Nick's Avatar
Posts: 7,156


Default Re: Creating your own relevant replacements

Oh, one thing I forgot to include was the CSS definitions so that the h1 and h2 tags are not gigantic. I've updated my former post.
Best Regards,
Nick


Support AdminAddict // Purchase from the following reputable vendors:
HostGator / Liquid Web / DriveThruOnline - Professional vBulletin Products / NameCheap Domains

Compare Hosting Plans
VPSDedicated Servers


Nick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

1 out of 1 members found this post helpful.
Old October 3rd, 2009, 09:46 AM   #7
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements

Thank you Nick We have decided to do the descriptions manually so it isnt the same text as from the homepage so I will be sat here almost all day now doing it lol
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 09:48 AM   #8
Nick's Avatar
Posts: 7,156


Default Re: Creating your own relevant replacements

Also, I've stuck this thread and moved it to the vBulletin forum.
Best Regards,
Nick


Support AdminAddict // Purchase from the following reputable vendors:
HostGator / Liquid Web / DriveThruOnline - Professional vBulletin Products / NameCheap Domains

Compare Hosting Plans
VPSDedicated Servers


Nick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 09:49 AM   #9
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements in vBulletin

It should be an article really Nick You done a good job
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 10:57 AM   #10
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements in vBulletin

Just tried [first_post_20_words]... and it doesnt work on showthread Anyone know how to get that to work?
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 11:19 AM   #11
Nick's Avatar
Posts: 7,156


Default Re: Creating your own relevant replacements in vBulletin

Quote:
Originally Posted by Michael View Post
Just tried [first_post_20_words]... and it doesnt work on showthread Anyone know how to get that to work?
I'm pretty sure that's not a standard variable. Where did you see this?
Best Regards,
Nick


Support AdminAddict // Purchase from the following reputable vendors:
HostGator / Liquid Web / DriveThruOnline - Professional vBulletin Products / NameCheap Domains

Compare Hosting Plans
VPSDedicated Servers


Nick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 11:35 AM   #12
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements in vBulletin

Its used in vbseo to pull the first x words of the thread to use in your RR's, it doesnt seem to be a standard variable unfortunately lol
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 3rd, 2009, 11:38 AM   #13
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements in vBulletin

We have just installed this mod:
Search Engine Optimized Keywords & Description per Forum - vBulletin.org Forum

But for some reason if you dont add your own custom description it will look like this:

<meta name="description" content=",Are you trying to get pregnant? Discuss getting pregnant including ovulation, fertility charting, infertility, sperm donors, In Vitro Fertilisation (IVF) and more." />

I am not sure if that nuisance comma at the beginning would make any difference considering SE's arent supposed to index special characters etc although with it being a comma I aint sure with this one
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 7th, 2009, 03:50 AM   #14
Grand Master
Posts: 981
Join Date: May 2009
Location: Scammon Bay, Alaska

Experience: Advanced
Forums Admin/Mod: 1
Software: vBulletin 3.8.x

Ak Worm will become famous soon enough
Send a message via AIM to Ak Worm Send a message via MSN to Ak Worm Send a message via Yahoo to Ak Worm Send a message via Skype™ to Ak Worm View Ak Worm's YouTube Channel View Ak Worm's Myspace Profile View Ak Worm's Twitter Profile
Default Re: Creating your own relevant replacements in vBulletin

Durr, tested it on Default style, don't work
Ak Worm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Old October 7th, 2009, 04:19 AM   #15
Zealot
Posts: 1,668
Join Date: May 2009

Experience: Advanced
Forums Admin/Mod: 2
Software: vBulletin
Forum: Puberty

Michael is just really niceMichael is just really niceMichael is just really niceMichael is just really niceMichael is just really nice
Default Re: Creating your own relevant replacements in vBulletin

Quote:
Originally Posted by Ak Worm View Post
Durr, tested it on Default style, don't work
It doesnt display anything?
Michael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTwitterShare on Facebook
Reply With Quote

Reply

Tags
creating, relevant, replacements

AdminAddict > Forum and Community Development > Community/Forum Software > vBulletin > Creating your own relevant replacements in vBulletin


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 01:03 AM.
Powered by vBulletin®, ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright ©2008-2010 AdminAddict, All Rights Reserved


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51