UBB.Dev
Posted By: Painfool Custom Forum Logo Url - 06/10/2004 12:21 AM
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!
Posted By: Ian Spence Re: Custom Forum Logo Url - 06/11/2004 1:13 AM
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!
Posted By: Painfool Re: Custom Forum Logo Url - 06/12/2004 12:03 PM
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!
Posted By: Ian Spence Re: Custom Forum Logo Url - 06/12/2004 10:22 PM
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,
Posted By: Painfool Re: Custom Forum Logo Url - 06/13/2004 4:52 AM
ha I knew it smile

But alas, I didnt try it .. thanks again!
© UBB.Developers