vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   forumdisplay.php?f=x ... Changing 'x' (https://vborg.vbsupport.ru/showthread.php?t=110525)

Lost_Prophet 03-16-2006 07:13 AM

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

007 03-16-2006 08:36 AM

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.

Xenon 03-16-2006 12:09 PM

@007: i think the imagescript uses the referrer url of a user's browser, at least i'd do it that way

Princeton 03-16-2006 12:43 PM

Lost_Prophet,

I'm a little confused.
What exactly do you want to achieve? Goal?

Lost_Prophet 03-16-2006 12:57 PM

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.

Princeton 03-16-2006 01:33 PM

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


All times are GMT. The time now is 07:43 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.03100 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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