Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom ON/OFF Icons per forum... Details »»
Custom ON/OFF Icons per forum...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-30-2002 Last Update: Never Installs: 22
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-05-2003, 07:10 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 01-06-2003, 08:44 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works great!!
Thanks Chris!!

Btw: I will post some screenshots tomorrow ...
Reply With Quote
  #14  
Old 01-08-2003, 05:29 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Karsten

Satan
Reply With Quote
  #15  
Old 04-04-2003, 05:57 PM
sweetmercifulcr sweetmercifulcr is offline
 
Join Date: Dec 2002
Location: Scottsdale, Arizona
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do the queries have to be run or can it be done without the queries?
Reply With Quote
  #16  
Old 04-18-2003, 06:53 AM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #17  
Old 04-19-2003, 04:57 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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
Reply With Quote
  #18  
Old 04-19-2003, 05:09 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 05-23-2003, 07:24 AM
D7MeEe's Avatar
D7MeEe D7MeEe is offline
 
Join Date: Jan 2003
Location: Saudi Arabia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Thanks

D7MeEe
Reply With Quote
  #20  
Old 10-23-2003, 03:18 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Goog, good, gracious!
Reply With Quote
  #21  
Old 11-16-2003, 06:05 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04569 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete