vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   IF URL Contains 'X' Code? (https://vborg.vbsupport.ru/showthread.php?t=307264)

howarde 01-20-2014 01:05 PM

IF URL Contains 'X' Code?
 
Is there a way to retrieve the URL in VB code similar to a php function that would be like:

PHP Code:

<?php if ($_SERVER['REQUEST_URI']=='/gallery/' ) {#Do What I Need Done;} ?>

Basically, I need to insert an ad zone, in the gallery, which in forums, I just use

vb:if condition="$GLOBALS[forumid]== foo"

But since /gallery isn't a forum and doesn't have a forum id... what should I use to find if the URL contains /gallery, any suggestions??

ozzy47 01-20-2014 01:08 PM

This is still not the thread for the gallery mod, as I suggested, post it in the mods thread, you may have more luck there. :)

howarde 01-20-2014 01:12 PM

Could you guys make it any more difficult? How about a link to the right forum, since you can't move the thread?

As I said in the other thread you wouldn't move, this isn't the VBULLETIN GALLERY.

--

I'm not asking a complex question.

All I want to know is:

Is there a vb variable for the URL similar to the php function SERVER 'REQUEST_URI' (brackets removed)

This isn't a request for a mod, or anything complex. It's almost a yes/no question.

ozzy47 01-20-2014 01:42 PM

So you want a link to the thread for the modification you are needing help with? How am I supposed to know which of the multiple gallery mods you are trying to work with.

Sure there is a similar thing in vB:
Code:

<vb:if condition="$_SERVER['REQUEST_METHOD'] != 'POST'">
But it all depends on where and what you are doing, if the variable is registered. That is why you need to ask in the modification thread.


All times are GMT. The time now is 10:53 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.01049 seconds
  • Memory Usage 1,715KB
  • 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)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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