Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 04:36 pm EST

Geeklog Forums

variables


Status: offline

moyashi

Forum User
Junior
Registered: 10/10/02
Posts: 16
Ok, I'm working on intergrating a theme into my site. I'm having trouble with using variables from foreign (as in non-geeklog) functions and with just creating new variables to use in general. here is an example of a function that I have:::
Text Formatted Code

***************************************************************************/
function html_main_top() {
        global $main_dir,$main_directory,$image_linker;
?>

<!--------------------------  BEGIN of main html area  -------------------------->
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" height="80%">
        <tr>
                <td width="15%" align="center" valign="top" class="J_text">
                        <?php echo html_leftbar(); ?>
                </td>
                <td width="5%" align=center valign="top">
                        <img src="<?php echo $image_linker ?>/vertline.gif">
                </td>
<!--------------------------  BEGIN of left area  -------------------------->

<?php
        return;
}
***************************************************************************/
 
I have my variables declared at the top of my functions.php file and I have also tried to add some of these variables to config.php and I also played around in lib-common.php for the relavent page but no go either. I would really like these obtions since my site was basically already a very very simple cms type with different functions for different parts of the site. any clues? am I just missing something really simple here? Any help would be appreciated.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sorry, I don't understand what you're trying to do. Can you try explaining it in some simple words? bye, Dirk
 Quote

Status: offline

moyashi

Forum User
Junior
Registered: 10/10/02
Posts: 16
For example, I'd like to use my site's variable $main_directory inside of geeklog templates. I've tried just calling the function which works but the variable $main_directory won't parse into "http://www.foobar.com" it seems that it doesn't get recognized. So I tried to add it to config.php and lib-common.php which didn't work either. Any ideas?
 Quote

All times are EST. The time is now 04:36 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content