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)
-   -   Custom ON/OFF Icons per forum... (https://vborg.vbsupport.ru/showthread.php?t=47180)

Chris M 12-30-2002 10:00 PM

Custom ON/OFF Icons per forum...
 
Please do the following before attempting to install:

1.) Backup your Files before doing anything
2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files, I cannot condone your install of this hack...
3.) If you want to Backup your Database, You can - There shouldn't be any need to...

The file you should have is:

install_forumicons_c_txt.php

Install Info:
Hack Version: 1.0
Files to edit: 2
Templates to add: 0
Templates to edit: 2
Queries to Run: 1
Time to install: Approx 3-5 Minutes

Credits
Requested by - sasjamal here

Support - I unfortunately cannot be here during the coming weeks (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread!!

Hack info

What does it do? - Basically, you can Select Custom On/Off.gif image for a forum:)

Additional Info/Updates

Image Info : Forum must be open for posts. All Custom Images will be in the format "on-forum-[id].gif"/"off-forum-[id].gif" where [id] is the forumid of the for the ON.gif/OFF.gif File is for (must be present in the images folder)

Screenshots/Live Demo

At this time, there are no screenshots, or a Live Demo...If someone can provide them, thank you:)

Enjoy!:)

Satan

curley 12-31-2002 07:38 PM

can you have different ones for different forums??

Mystis 12-31-2002 09:02 PM

Yes, that's what the whole point is curley.

Nice one hellsatan :D

Dean C 12-31-2002 09:02 PM

I think that's what this hack does curley :p

Silenced Soul 12-31-2002 09:07 PM

nice one hellsatan. Was looking for something like this :D.

Chris M 12-31-2002 10:47 PM

Thanks:)

I thought it would be pretty simple to do, so I did it:)

Satan

Chris M 12-31-2002 10:48 PM

@Curley - Yes that is what this hack allows:)

You must have the "Custom Images?" option set to yes for it to show the Custom Image;)

Satan

Silenced Soul 01-01-2003 02:57 AM

just installed, and works like a charm ;D

Chris M 01-01-2003 09:54 AM

Great:) Glad you like it!:)

Satan

sasjamal 01-05-2003 03:49 PM

Any Screen Shots / Demos?

Chris M 01-05-2003 07:10 PM

Unfortunately I know of none:(

I am not a graphical person, so Custom images are not my forte:(

If anyone can provide some though;):)

Satan

Kars10 01-06-2003 08:44 PM

Installed and works great!!
Thanks Chris!!

Btw: I will post some screenshots tomorrow ... ;)

Chris M 01-08-2003 05:29 PM

Thanks Karsten:)

Satan

sweetmercifulcr 04-04-2003 05:57 PM

do the queries have to be run or can it be done without the queries?

Xelation 04-18-2003 06:53 AM

I've done everything right but its not working.. this is what im naming the files

off-forum-10.gif
off-forum-[10].gif

Ive tried both and it doesnt work, can you help me?

Chris M 04-19-2003 04:57 PM

@sweetmercifulcr - Yes the query must be ran:)

@Xelation - I have noticed an error in the instructions:(

In the instructions (the last file change), it says:

Code:

=============
Replace with:
=============

        if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          $forum['onoff'].='lock';
        }
          if ($forum['onimage']=="1") {
                $onoffid="$forum[forumid]";
          }else{
                $onoffid="";
          }

That is wrong...

It should be:

Code:

=============
Replace with:
=============

        if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          $forum['onoff'].='lock';
        }
          if ($forum['onoffimage']=="1") {
                $onoffid="$forum[forumid]";
          }else{
                $onoffid="";
          }

That should correct your problem:)

Satan

Chris M 04-19-2003 05:09 PM

Ok...

I noticed another error:

In the instructions file, in the admin/forum.php changes, change:

Code:

  makeyesnocode("Use Custom Forum Image?<br>(on.gif & off.gif)","onimage",$forum['onoffimage']);
to

Code:

  makeyesnocode("Use Custom Forum Image?<br>(on.gif & off.gif)","onoffimage",$forum['onoffimage']);
:)

Satan

D7MeEe 05-23-2003 07:24 AM

Thanks
Thanks

D7MeEe

gmarik 10-23-2003 03:18 PM

Goog, good, gracious!

Blaine0002 11-16-2003 06:05 PM

its just what i wanted but... it dosent work! if i activate a forum i go to the main page and theres a red X there.

so i right click on the X and go to properties and the image is looking for off-forum-.gif

with no ID number!? any fixes?

http://www.crossingcentral.com

Sting3r 11-24-2003 07:22 AM

^ am having the same problem. The ids dont work. IT asks for off-forum-.gif.

Blaine0002 11-25-2003 06:20 PM

yeah, can somone get back to us!?

gmarik 11-25-2003 08:08 PM

I'll be working on my own version of this hack with alpha transparency and no off.gif's

MaDCaT75 12-10-2003 10:16 PM

Quote:

Originally Posted by Blaine0002
yeah, can somone get back to us!?

same here!!!!!

Blaine0002 12-21-2003 04:26 PM

come on!

MaDCaT75 12-24-2003 02:31 AM

I think this hack is officially dead :\

Blaine0002 12-24-2003 01:06 PM

yeah, i guess so. Damnit.

Doubledoom 12-24-2003 01:09 PM

it works on 2.3.0

MaDCaT75 12-26-2003 02:49 AM

Quote:

Originally Posted by Doubledoom
it works on 2.3.0

I have 2.3.0 - it doesnt work for me..... can you gimme a hand plz?

Blaine0002 12-26-2003 12:18 PM

same herr

gmarik 12-28-2003 03:58 PM

Could somebody integrate this with vBulletin on/off icons?
It would look something like roboUK site, it would be great. I tried and failed ...


All times are GMT. The time now is 10:29 PM.

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.01189 seconds
  • Memory Usage 1,768KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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