Vault - how to link to Stock Exchange

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Vault - how to link to Stock Exchange
jaymullah
CZ Super Newbie
jaymullah has been a member for over 20 year's 20 Year Member
usa.gif northcarolina.gif
Occupation: Freelance Webdesign
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Jan 11, 2004
0.01 posts per day
Posts: 40
Points: 3,244
 Yahoo Messenger MSN Messenger 
I am using the Vault mod. It has a Stock Exchange with it. I can not figure out how to link directly to it. Right now you have to click to go to the bank, and then click the stock exchange button.

The reason I'm having trouble, is it is done in a form, and I cant work it out by looking at all the code. I think the way the vault mod is setup, all functions of the vault are in the one vault.php file, and how it determines what section your are in (bank, stocks, etc) is with if statements. Here is what I've found by looking at the code. In the vault_body.tpl file (vaults mainpage) , the code for the button for the stock exchange at the bottom is:

<input type="submit" value="{L_STOCK_EXCHANGE}" name="stock_exchange" class="mainoption" />


Searching in the vault.php file I find:

if ( $stock_exchange )

{

   $template->set_filenames(array(

      'body' => 'vault_exchange_body.tpl')

   );


Can anyone help me out with this, I want to place a link to the Stock Exchange on my main menu. Let me know if I need to include any more information.

If you cant find the mod for download, I've uploaded it to my site, can be found here [ Register or login to view links on this board. ]

Thanks for any help!


Back to top Reply with quote
#2   re: Vault - how to link to Stock Exchange
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
depending on where you want to link from, you can try

<a href="{L_STOCK_EXCHANGE}" class="mainmenu">


That code is if you want to place it in the forum header. You don't really need the class part of the code.


Taut


Back to top Reply with quote
#3   re: Vault - how to link to Stock Exchange
jaymullah
CZ Super Newbie
jaymullah has been a member for over 20 year's 20 Year Member
usa.gif northcarolina.gif
Occupation: Freelance Webdesign
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Jan 11, 2004
0.01 posts per day
Posts: 40
Points: 3,244
 Yahoo Messenger MSN Messenger 
It doesn't work, even if I try to add it to the mainpage of the Vault. My goal is to have this link in a block, on my main menu.

in vault.php it defines 'L_STOCK_EXCHANGE' as:

'L_STOCK_EXCHANGE'       => $lang['Vault_stock_exchange'],



and in lang_vault.php it defines 'Vault_stock_exchange' as

$lang['Vault_stock_exchange']='Stock Exchange';




It uses a form, so I am wondering if I would have to create the same form to make the link in a block. This section may be useful in figuring out the link or how to do it:

in vault.php
$stock_exchange = isset($HTTP_POST_VARS['stock_exchange']);

if(isset($HTTP_POST_VARS['from']))

{

   $stock_exchange = ($HTTP_POST_VARS['from'] == 'pm') ? TRUE : FALSE;

   $list = ($HTTP_POST_VARS['from'] == 'list') ? TRUE : FALSE;

}

else if(isset($HTTP_GET_VARS['from']))

{

   $stock_exchange = ($HTTP_GET_VARS['from'] == 'pm') ? TRUE : FALSE;

   $list = ($HTTP_GET_VARS['from'] == 'list') ? TRUE : FALSE;

}



Back to top Reply with quote
#4   
jaymullah
CZ Super Newbie
jaymullah has been a member for over 20 year's 20 Year Member
usa.gif northcarolina.gif
Occupation: Freelance Webdesign
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Jan 11, 2004
0.01 posts per day
Posts: 40
Points: 3,244
 Yahoo Messenger MSN Messenger 
I still cant figure this out for anything! icon_sad.gif

Ok, using a IP/Page tracker and looking at the results when clicking the Stock Exchange button, it gives me this link:
[ Register or login to view links on this board. ] EXCHANGE&DEPOSIT_SUM=&WITHDRAW_SUM=&LOAN_SUM=

I tried the link without all the capitals still doesn't work, also with adding:
modules.php?name=Forums&file=vault
instead of just:
modules.php?

I dont know why the IP tracker doesn't include that in the URL. I could REALLY use some help or advice I cant figure this out. I want to add a direct link to the stock exchange from my mainpage (link will be inside a block).

Thanks



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum