PDA

View Full Version : Forum Home Enhancements - Direct External Links


Marco van Herwaarden
09-23-2007, 10:00 PM
Direct External Links - 1.0.0a

Modification: Direct External Links
Version: 1.0.0a
Author: MarcoH64 / Marco van Herwaarden
vB Version: 3.6.8 (might work on older 3.6.x versions)

Based on request: Direct Forum Link (https://vborg.vbsupport.ru/showthread.php?t=158617)

Please don't forget to click Install at vbulletin.org if you want to keep updated.

Description:
Standard vBulletin offers the option to create forum that is a link to an URL ("Forum URL"). This will however not be a direct link, but a redirect over forumdisplay.php.

With this modification you will have the option to replace the redirect link over forumdisplay.php with the real direct external link. This option can be set for each forum (that has the Forum URL set) individually. This will work both on ForumHome and on ForumDisplay.

1 product file
2 manual template edit.

Change Log:

24 september 2007 - 1.0.0a
- Updated install instructions to work also for Sub-Forums and both on ForumHome and ForumDisplay

Magnumutz
09-24-2007, 10:46 AM
I'm glad to be the first to install this hack, Thanks Marco !

Waiting for the download :P

Marco van Herwaarden
09-24-2007, 10:51 AM
Download re-added.

Atakan KOC
09-24-2007, 10:53 AM
Thanks Marco...

Marco van Herwaarden
09-24-2007, 03:32 PM
Updated to work also for SubForums and bot on ForumHome and ForumDisplay.

No reinstall needed, only updated install instructions to do an additional template edit.

Out of Beta

staff80
09-24-2007, 05:16 PM
Thanks so much. Instant reply. :)

Marco van Herwaarden
09-24-2007, 05:19 PM
Please let me know if it works as expected.

BuRaCh
09-24-2007, 07:29 PM
nice idea marco
installed;)

Calash
09-24-2007, 07:31 PM
Working perfectly on my site. It is all internal links to different sections of the site.

Thanks for posting the mod :)

iogames
09-24-2007, 07:44 PM
I know is good, just I don't know why... :p

4x4 Mecca
09-25-2007, 06:18 AM
Doesn't quite fork for me. From forumhome http://www.socaloffroading.com/ you see it's not working, but from the sub forum it is http://www.socaloffroading.com/forumdisplay.php?f=21 (the first 3 have been changed, the rest haven't)

projectego
09-25-2007, 07:16 AM
Thank you! :D

Marco van Herwaarden
09-25-2007, 07:45 AM
Doesn't quite fork for me. From forumhome http://www.socaloffroading.com/ you see it's not working, but from the sub forum it is http://www.socaloffroading.com/forumdisplay.php?f=21 (the first 3 have been changed, the rest haven't)
I don't see any external links at all on your forumhome.

Marco van Herwaarden
09-25-2007, 07:47 AM
Thank you! :D
Sorry but i don't understand your post. What are you thanking for if you have not even downloaded it.

* Marco van Herwaarden confused

4x4 Mecca
09-25-2007, 04:03 PM
at the bottom, the sub forums. They are in a forum called "So Cal Off Roading Links"

Marco van Herwaarden
09-25-2007, 04:49 PM
If you mean the subforums of the Shop Links & Business Links, they are probably using a level3 forumbit, did you also edit that template?

Analogpoint
09-25-2007, 05:35 PM
Sorry but i don't understand your post. What are you thanking for if you have not even downloaded it.

* Marco van Herwaarden confused

Maybe he's thanking you for it, and planning on downloading/installing it at a later date. :)

iogames
09-25-2007, 07:42 PM
Maybe he's thanking you for it, and planning on downloading/installing it at a later date. :)

Or maybe thanking you for longstanding service to the community ;)

I confess, when a saw it was a 'Herwaarden' I thought, must be good! but I still can't find purpose on my forum for this hack... :confused:

4x4 Mecca
09-25-2007, 09:51 PM
Thanks, I saw you say the thing about editing the other templates, but didn't know that applied to what I was doing.

Marco van Herwaarden
09-26-2007, 05:30 AM
So where you able to solve it by editing that level3 template?

4x4 Mecca
09-26-2007, 05:36 AM
I didn't see a level3 template. I searched for "forumhome_forumbit_" and 1 and 2 came up, that's it.

Marco van Herwaarden
09-26-2007, 08:40 AM
You will need to edit the template that is used to show these sub-forums in 2 columns. If you do not know which template it is, shortly enable debug to see which template it is.

If you can not figure it out, you could send me admin login details by PM and i will have a look (for your testboard would be best if you have a test copy of your board).

4x4 Mecca
09-27-2007, 05:25 PM
Here is the code that is included with that mod. I disabled it once, and that didn't change anything.
<if condition="(!in_array($forum['forumid'], array($cybsfa_countsexclfrms)) AND ($forum['threadcount']!=0))">
<if condition="!in_array($forum['parentid'], array($cybsfa_exclfrms2))">
<if condition="(($forum[childlist]==$forum[forumid].',-1') AND !$forum[link])">
<span title="$cybsfmt" style="text-transform:none;$vboptions[cybsfa_countscss]">$cybsfmp</span></if><else />
<if condition="$vboptions[cybsfa_affectexclforums]"><if condition="(($forum[childlist]==$forum[forumid].',-1') AND !$forum[link])">
<span title="$cybsfmt" style="text-transform:none;$vboptions[cybsfa_countscss]">$cybsfmp</span></if></if></if></if>
<if condition="(in_array($forum[forumid], array($cybsfa_blanklinesub)))"><br /><br /></if>

Arrogant-One
09-28-2007, 08:02 AM
Are there any screen shots for this mod?

I dont really understand what this mod does. Currently you click the link icon and type in the page and then give a description for it. How does this mod make that process work better?

AO

Marco van Herwaarden
09-29-2007, 07:36 AM
Sorry, but i have no clue what that does.Here is the code that is included with that mod. I disabled it once, and that didn't change anything.
<if condition="(!in_array($forum['forumid'], array($cybsfa_countsexclfrms)) AND ($forum['threadcount']!=0))">
<if condition="!in_array($forum['parentid'], array($cybsfa_exclfrms2))">
<if condition="(($forum[childlist]==$forum[forumid].',-1') AND !$forum[link])">
<span title="$cybsfmt" style="text-transform:none;$vboptions[cybsfa_countscss]">$cybsfmp</span></if><else />
<if condition="$vboptions[cybsfa_affectexclforums]"><if condition="(($forum[childlist]==$forum[forumid].',-1') AND !$forum[link])">
<span title="$cybsfmt" style="text-transform:none;$vboptions[cybsfa_countscss]">$cybsfmp</span></if></if></if></if>
<if condition="(in_array($forum[forumid], array($cybsfa_blanklinesub)))"><br /><br /></if>

Marco van Herwaarden
09-29-2007, 07:38 AM
Are there any screen shots for this mod?

I dont really understand what this mod does. Currently you click the link icon and type in the page and then give a description for it. How does this mod make that process work better?

AO
Screenshots would not show you much.

If you use a forum link (ie. fill out the link in the Forum Manager), regular vBulletin would put a link like "../forumdisplay.php?f=1234" on your forumhome or forumdisplay. When clicked it would redirect to the link provided. With this modification it is possible to replace the forumdisplay.php?f=1234 link on these pages, with the target link itself.

JohnBee
09-30-2007, 02:42 PM
For a moment there, I thought this hack would produce live forum links(with stats) like a true forum...

King Diamond
04-27-2011, 10:12 AM
Please Update this hack

version 4

thanks