vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Please help. Simple variable question (https://vborg.vbsupport.ru/showthread.php?t=154346)

bpn 08-05-2007 03:44 AM

Please help. Simple variable question
 
Hi,

I have just installed a chatroom on my site, which is being called with a javascript link that includes the logged in persons username, avatar, etc.

To get the link/url in my navbar, all I had to do, was to add this code: $chatLink

$chatLink is defined in global.php

Here's my problem. I want to have a forum title opening the chatroom as well, so

I have created a forum, and as title I added this:
Code:


<a href="$chatLink">Chatroom</a>

But $chatLink is not parsed at all.
I tried with the Forum Description as well with the same result.

The last thing I tried was to add the link to my forum in the
forumhome_forumbit_columncell
with an if statement...but still no go...$chatLink will not get parsed what so ever

I have tried to add the variable many places, fx. functions_forumlist.php, but without luck.

Can you please help me in the right direction, or is this mission impossible ?


If this is a more advanced than I think, I will paypal as well.


Thanks,
Bpn

Dismounted 08-05-2007 05:31 AM

Variables are not parsed in forum titles.

bpn 08-05-2007 10:08 AM

Ouch no wonder I can't get it to work.

Do you think it's possible to make it do it somehow, or maybe use another workaround
like making a normal javascript link without variables, that is calling a function that can get the variables ?

Eikinskjaldi 08-05-2007 01:00 PM

In the forum editing functions in admincp you can set a forum to be redirected to any old url regardless of what title the forum has. I doubt it will parse, so it wont pass along any variables, but since all those variables can be derived from the session, there isn't any need to pass them in the first place.

bpn 08-05-2007 02:12 PM

Sorry if this is a stupid question...but what do you mean with this ?

"but since all those variables can be derived from the session, there isn't any need to pass them in the first place."


All times are GMT. The time now is 07:33 AM.

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.00960 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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