Previous Thread
Next Thread
Print Thread
Rate Thread
#57761 06/09/2004 5:21 PM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
Any chance of a modification that allows you to specify a url for the Header Logo in a forum (as set in styles)? I would think if not set then default to the Forum summary page .. but if set then the click takes you to the specified url. Good way to help generate clicks in Sponsored forums. at least for me smile

Thanks for your time and consideration!

Sponsored Links
#57762 06/10/2004 6:13 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
In public_forum_page.pl.

FIND:
Code
	if((($Moderator eq $vars_wordlets{"no_mods"}) && ($vars_display{DisplayModBy} eq "nomods"))
|| ($vars_display{DisplayModBy} eq "no")) {
$modby = "";
} # end if
ADD AFTER:
Code
	my $forumlinkage = "forumimage_url_" . $in{f}; 
my $link = ($vars_wordlets{$forumlinkage} ne "") ? $vars_wordlets{$forumlinkage} : $ULTIMATEBB{""};
FIND:
Code
	my $hf = &generic_wrapper({
ADD AFTER:
Code
		image_href => $link,
Now, in order to add links to specific forums, add lines to vars_wordlets.cgi in the following format.

If you want forum 15 to link to www.alforadmin.com (which I strongly reccomend wink ), add this line

Code
    q!forumimage_url_15! => q!http://www.alforadmin.com!,
Voila!

#57763 06/12/2004 5:03 AM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
Thanks Ian.. works great...

What would I change to make this spill over to the public_topic_page ? That would make this Modification complete.


Thanks!

#57764 06/12/2004 3:22 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
In public_topic_page.pl.

FIND:
Code
	$bluear = "" if $vars_display{BlueArrow} ne "ON";
ADD AFTER:
Code
	my $forumlinkage = "forumimage_url_" . $in{f}; 
my $link = ($vars_wordlets{$forumlinkage} ne "") ? $vars_wordlets{$forumlinkage} : $ULTIMATEBB{""};
FIND:
Code
	my $hf = &generic_wrapper({
ADD AFTER:
Code
		image_href => $link,

#57765 06/12/2004 9:52 PM
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
ha I knew it smile

But alas, I didnt try it .. thanks again!

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)