vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Display one or multiple forum banners per seperate forum (https://vborg.vbsupport.ru/showthread.php?t=58952)

MaDCaT75 12-01-2003 10:00 PM

Display one or multiple forum banners per seperate forum
 
Hi everyone! This is my first hack so bare with me here. I didnt have anyone else try this out yet cause all my vb friends have 3.0 :rolleyes:

Description:

What this hack does is it will allow you to add a banner or a small image or whatever to your forum display. You may add only one image per forum display, however you can display a seperate image to another forum at the same time.



The instructions are attatched.

Please let me know if this hack works or not. I will try to figure out what is missing if the image does not display.

Example of the image being displayed in forumdisplay:

MaDCaT75 12-02-2003 04:59 AM

Sorry I thought it was a short enough hack to just plop it in my post :rolleyes:

kaotic 12-02-2003 05:03 AM

Oh, it's not that. I think it's against the rules to post instructions in a post because members without licenses will be able to see the code... or something like that.

MaDCaT75 12-02-2003 05:45 AM

Sorry, I did not know :ermm:

assassingod 12-02-2003 05:49 AM

Nice hack, similar ones have been made though.

MaDCaT75 12-02-2003 05:52 AM

Quote:

Originally Posted by assassingod
Nice hack, similar ones have been made though.

I figured as much but I thought perhaps mine would be nice to add to the pile too :rolleyes:

Edit: I put a txt file for instructions in my first post.

FleaBag 12-02-2003 08:03 AM

Nice work! This will come in handy for my hosted forums.

MaDCaT75 12-02-2003 08:20 AM

Quote:

Originally Posted by FleaBag
Nice work! This will come in handy for my hosted forums.

Thank you kindly :)

Dean C 12-02-2003 11:03 AM

kaotic - code and php boxes are only viewable by licensed members - has been like that for some time now :)

MaDCaT75 12-02-2003 08:42 PM

Wow I had no idea :rolleyes:

gmarik 12-06-2003 03:40 AM

Great!

MaDCaT75 12-06-2003 10:06 PM

Quote:

Originally Posted by gmarik
Great!

Thanks :)

gmarik 12-07-2003 01:39 PM

How does it differs from the Article 0.4 hack, any idea?
It's rather the same, maybe something more like yaxay has?

MaDCaT75 12-07-2003 02:25 PM

I am unfamiliar with the Article hack..... I never knew about it. I dont have time to go thru all the hacks to check to see if they are similar or exactly like mine.

FleaBag 12-08-2003 11:43 PM

Quote:

Originally Posted by gmarik
How does it differs from the Article 0.4 hack, any idea?
It's rather the same, maybe something more like yaxay has?

Erm what has this got to do with that hack in any way?

FleaBag 12-09-2003 03:05 AM

Installed now, cheers.

MaDCaT75 12-09-2003 05:18 AM

Quote:

Originally Posted by FleaBag
Erm what has this got to do with that hack in any way?

I was wondering the same thing.

Shell Geeks 12-27-2003 12:25 AM

I'll give this a whirl for ya and let you know if it works ;)

MaDCaT75 12-31-2003 07:54 AM

Roger that!

MindTrix 12-31-2003 04:19 PM

Cant see why it wouldnt work ;) It's pretty straight forward :)

gmarik 01-01-2004 06:01 PM

Make, make, make it vbthree and you'll be free!

MaDCaT75 01-01-2004 08:27 PM

Quote:

Originally Posted by gmarik
Make, make, make it vbthree and you'll be free!

That makes no sense :confused:

erikajune 01-29-2004 08:13 PM

How can I make it so the banner can link somewhere?

MaDCaT75 01-29-2004 08:25 PM

do you want all of the banners to link somewhere? Cuz if you put <a href="http://gotohere.com">$forumimg</a> then all of the banners would be affected... thats the only way I can think of.

erikajune 01-29-2004 08:35 PM

I want all of them to link to different destinations. I have 6 different banners in total, all linking to a different site.

Where do I add the URL code within this:
Code:

if($foruminfo[forumid] == XX)
        {
            $forumimg = "<img src=\"{imagesfolder}/whatever.jpg\" />";
        }


armani1072 01-31-2004 06:22 AM

Quote:

Originally Posted by erikajune
I want all of them to link to different destinations. I have 6 different banners in total, all linking to a different site.



i too would like to know. i like the hack cause it is simple. i just need a to link my banners.

MaDCaT75 02-02-2004 03:29 AM

well i supppose you can put a URL link in there when editing it. I'm not sure because I dont have vb 2 anymore.

erikajune 02-03-2004 07:10 PM

Could you show me what it would look like in the example above?

Thanks. :)

MindTrix 02-03-2004 07:40 PM

Try

PHP Code:

if($foruminfo[forumid] == XX
    { 
     
$forumimg "<a href="www.chat2death.com"><img src=\"{imagesfolder}/whatever.jpg\" /></a>"
    } 

Thats a wild guess though

erikajune 02-06-2004 03:06 AM

Thanks but that doesn't work. I get an error in the forums. Is it really impossible to do this?

erikajune 02-06-2004 03:31 AM

Figured it out.

The code is:

Code:

$forumimg = "<a href=\"http://www.site.com\"><img src=\"http://www.site.com/images/picture.jpg\" /></a>";

MaDCaT75 02-10-2004 09:13 PM

Kewl :)

MindTrix 02-10-2004 09:46 PM

Ah yeah i forgot to quote out the " marks etc, ah well simple mistake ;)

basskiller 02-15-2004 11:10 PM

is there a way to link one image in "X" forum to one www.site1.com
then in forum Y have that image linked to www.site2.com

MindTrix 02-15-2004 11:14 PM

PHP Code:

if($foruminfo[forumid] == XX
    { 
        
$forumimg "<a href=\"http://www.site.com\"><img src=\"http://www.site.com/images/picture.jpg\" /></a>";
    }
elseif(
$foruminfo[forumid] == xx)
{
$forumimg "<a href=\"http://www.site.com\"><img src=\"http://www.site.com/images/picture.jpg\" /></a>";


Try something like that,let me know how it goes

basskiller 02-15-2004 11:53 PM

Mindtrix. That worked perfectly!
I have a banner rotation hack, but this works great for also having a static banner /image placement

Thank you very much!
bass

MindTrix 02-15-2004 11:57 PM

Glad it helped mate.

MaDCaT75 02-19-2004 07:55 AM

Sorry I havent been around latley guys..... busy with real life stuff :p

tHe Rk 03-17-2004 08:53 PM

Great Hack Mad Cat! *Clicks Install* Up and running at my website (below)! :D

basskiller 07-30-2004 03:56 AM

This hack also works in 3.0.3 .. Thanks again for the hack!


All times are GMT. The time now is 04:18 AM.

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.03285 seconds
  • Memory Usage 1,789KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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