vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Where to find (and change) {vb:raw url} ? (https://vborg.vbsupport.ru/showthread.php?t=263946)

thehawkVB 05-20-2011 06:06 PM

Where to find (and change) {vb:raw url} ?
 
Hi.

Can someone please help me understand how can I change the value returned by {vb:raw url} ?

Is it a function, where can I find it?

Disasterpiece 05-20-2011 06:14 PM

Can you elaborate why you would want to do that?

Other functions and mods rely on it and it just doesn't sound right to change the function instead of the return value.

thehawkVB 05-20-2011 06:21 PM

I'm on a reverse proxy system and when I delete a post I end up with:

<input type="hidden" name="url" value="/~websitename/forum/showthread.php ... etc

I want to omit the "/~websitename/forum/" part.

The change would not break "Other functions and mods", would it? hmmm

Of course I'm open to more elegant solutions, if any.

--------------- Added [DATE]1305919982[/DATE] at [TIME]1305919982[/TIME] ---------------

Here are more details:

My website is located at : http://www.mydomain.com
Forum, on a different server, is located at : http://www.mydomain.com/forum

The forum loads correctly and works correctly via a ReWrite Proxy rule on the first server.

The only problem is that when I delete a post, in the "Physically remove" screen, the hidden field <input type="hidden" name="url" has this value:
/~websitename/forum/showthread.php/etc. etc.

Of course I have no rule in the first server to tackle "/~websitename/forum/". I can add it, but I believe removing that part would work better.

Disasterpiece 05-20-2011 06:38 PM

I have to pass on that, I have no idea of the reverse proxy thingy, I don't even know what that exactly is.

thehawkVB 05-21-2011 11:49 AM

No worries Disasterpiece.

Unfortunately, I still can't figure it out.

vbresults 05-21-2011 06:03 PM

Create a new plugin, and in the global_start hook mess around with $vbulletin->options['bburl'] variable. Maybe set it to ./?

nitra1000 05-21-2011 06:09 PM

Why not just delete {vb:raw url} from that particular place?

p.s You've put a paid request in as well, if you still can't figure it out pm me :(


All times are GMT. The time now is 11:21 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.00973 seconds
  • Memory Usage 1,720KB
  • 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
  • (7)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