vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   trying to link from a thread/post to local file - SOLVED AGAIN! (https://vborg.vbsupport.ru/showthread.php?t=235393)

Vaupell 02-09-2010 12:02 PM

trying to link from a thread/post to local file - SOLVED AGAIN!
 
Working on a mod, that creates a new thread,
and it works fine, i make the thread via a template installed.

Now i want to incoorperate a link via this method,
and i cant use html cause its a thread/post, well i could
but if its installed on a forum that disallow html it wont work..
so no html..

this is the link i got im my template im trying to get working.

EDIT : OMG had to put it in PHP BB, cause using the CODE around it, still makes it run bbcodes
PHP Code:

[url="ewow.php?do=viewapplication&id={vb:raw userid}"]{vb:rawphrase ewow_app_application}[/url

Link is posted fine..
But the link when clicking it tryes to open ewow.php as a website itself,

thats wrong, it should only open "local" tryed adding ./ infront but nope..

Any ideas how to use the bb url code as local link ?

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

As usual,, solved after posting..

was looking at this issue for 15mins, couldnt figure it out..
posted the thread,, looked at it,, then DOOOOHHH

bburl from vbulletin settings. omfg..

made a var in the phpfile calling bburl

PHP Code:

$localdomain $vbulletin->options['bburl'];
$templater->register('domain'$localdomain); 

and then my link in my template is now

PHP Code:

[url="{vb:raw domain}/ewow.php?do=viewapplication&id={vb:raw userid}"]{vb:rawphrase ewow_app_application}[/url

Well.. tx for letting me post threads.. lol..

/facepalm


All times are GMT. The time now is 09:25 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.01175 seconds
  • Memory Usage 1,712KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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