Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-16-2006, 07:13 AM
Lost_Prophet Lost_Prophet is offline
 
Join Date: Feb 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default forumdisplay.php?f=x ... Changing 'x'

This is a slightly odd request perhaps, but one of my users is attempting to make a forum-dependant signature script (that displays a certain sig image depending on the forum you're in)

He's basically - to my knowledge - doing an "if in this forum, display image X" style script. However its pretty tedious with all the forum numbers, and we have 160 forums including catagories

Is there a way to:
a) Alter the number that comes at the end of a forum (forumdisplay.php?f=x) to anything - eg abc01, abc02, etc.
b) Assign some sort of 'mask' to a set of forums so that they all display the same URL
Reply With Quote
  #2  
Old 03-16-2006, 08:36 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could just ask him to stop.. if that doesn't work then give him a temporary ban.

As far as I know there is no easy way to do what you want..

Do you have HTML enabled? If so and if that's how he's doing it, you could always just turn off HTML.

Maybe give some more details about this. I'm confused exactly how he is doing this.
Reply With Quote
  #3  
Old 03-16-2006, 12:09 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@007: i think the imagescript uses the referrer url of a user's browser, at least i'd do it that way
Reply With Quote
  #4  
Old 03-16-2006, 12:43 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lost_Prophet,

I'm a little confused.
What exactly do you want to achieve? Goal?
Reply With Quote
  #5  
Old 03-16-2006, 12:57 PM
Lost_Prophet Lost_Prophet is offline
 
Join Date: Feb 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I wasn't clear

It's not that I *don't* want him to do it (HTML is turned off)
I'm setting up a site with multiple games (MMOs, FPSs, etc) and I wondered if there would be a way to create something that would display Signature X when in forum X, Signature Y when in forum Y, etc.

I believe he's working on a modification of the ubiquitous rotator.php file, displaying a certain image based on the path of the forum.

If there's an easier way to do this I'd be all ears, but I haven't a clue and this user is the only one competant enough thats willing to offer up a solution.

What I was thinking was - if I could replace the 'x' of the forum with something else (a letter or letter+number code for the type of forum it is) it would make creation (or at least testing) of the script simpler.
Reply With Quote
  #6  
Old 03-16-2006, 01:33 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need a script.

Create all images with the same name and append the forumid to the name
For example: sigimage$post[forumid].gif

Now create a sigimage for each forum and name them ...
sigimage1.gif
sigimage2.gif
sigimage4.gif
sigimage5.gif
sigimage6.gif etc, etc

if you do not want image to display in a certain forum use a conditional statement
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:18 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.06358 seconds
  • Memory Usage 2,194KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete