Jump to content

chris86

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chris86's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok, thanks pocobueno. Lur - Awesome, thanks.
  2. That looks like a nice solution, and it's open source. Thanks pocobueno. Have you personally used Winbinder? I'm curious whether there would be a steep learning curve for a developer who has never used it before.
  3. Can PHP be used to create a Windows based application (NOT a web-based app)? For instance, if something could be coded in VB.NET or C#, could it also be coded in PHP? I know that Visual Studio comes with a lot of "built-in" features that allow developers to easily create the GUI for a Windows-based app. Does PHP offer something similar to Visual Studio, or must the visual interface be manually developed using HTML and CSS? If you were creating a Windows based app, would you code it in .NET or PHP? Which option would be easier? (Again, this is for a WINDOWS based app, not a web-based app.)
  4. Thanks Jesi.  I figured it out with the help of some folks who know the forum software very well.  Here's the code I ended up using: [code] <?php if(in_array($Context->SelfUrl, array("index.php", "categories.php", "discussions.php", "comments.php",   "search.php", "post.php", "account.php", "settings.php"))){ $ListName = 'Recommended Resources'; $Panel->AddList($ListName, 100); $Panel->AddListItem($ListName, '<font color="#0000ff"> Heading Title Here</font>', 'http://domain1.com'); $Panel->AddListItem($ListName, '<font color="#0000ff">Heading Title 2 Here</font>', 'http://domain2.com'); } ?> [/code] Everything's working great now.  Thanks again for your help.
  5. Thank you Dave and Jesi.  Yes, Jesi I am very new to PHP, and I could use a good book or two. I am open to any suggestions/recommendations. Ok, here is my new code... [code] <?php $content= '<br><strong> <font size="2"> My Heading Here </strong></font> <br><a href="http://lussumo.com"> Lussumo</a><br> <a href="http://google.com"> Google</a>'; if(isset($Panel)) $Panel->$content;  /* I want to display $content here. Is what I've written accurate?  Is the arrow        appropriate here?  I tried searching Google for "arrow PHP" but I didn't find anything. I also tried searching for " -> PHP" but no luck.  What do you call the arrow symbol?  It's not an operator. */ ?> [/code] When I upload this code, I get [u]another[/u] error message.  It says "Undefined property" on line 18.  Line 18 is $Panel->$content.  What have I done wrong? 
  6. $content= But how does that work with HTML code? I can’t do [code] $content= <br><strong> <font size="2"> My Heading Here </strong></font> <br><a href="http://lussumo.com"> Lussumo</a><br> <a href="http://google.com"> Google</a> [/code] or I’m going to get another parse error. 
  7. I tried adding a bunch of HTML break tags, and that doesn't work with the way this particular forum is set up.  It just adds a bunch of white space, and pushes the discussion threads further down.  I would like to add... [code] $Panel->AddString($content,150); [/code] back into to my code (Problem is, I don't have a string any longer). I think the "150" relates to where the content is positioned on the page.  When I add that line of code back, I get an "undefined variable" error (because $content is undefined).  How do I define the link data (anchor text and URL's) as $content ?
  8. Thanks Jesirose.  That did the trick! The only problem now is that my links are sitting at the very top of the sidepanel.  How do I move the links further down the page?
  9. I got rid of the array part, and now I'm getting a parse error, which reads... Parse error: syntax error, unexpected '<' in /home/user_name/public_html/community/extensions/Sidepanel-2006-07-24/default.php on line 13 Apparently, PHP doesn't like the beginning HTML tag. Here is my code: [code] <?php if(isset($Panel)) <br><strong> <font size=\"2"> My Heading Here </strong></font> <br> <a href=\"http://lussumo.com"> Lussumo</a><br> <a href=\"http://google.com"> Google</a>'); ?> [/code] How do I get rid of the parse error?
  10. I am trying to add an external link (i.e. a link to Google) into a forum sidebar.  Unfortunately, I am getting a 404 error.  The PHP code (which I was given) is appending my external URL to index.php (community) and then to the categories subdirectory. When the sidebar URL is clicked, the user should be directed to Google.com (in this example).    But, instead of going to google.com, the user is directed to domain.com/community/categories/\"http://google.com" which produces a 404 error.  Not good. Here's the code... [code] <?php if(in_array($Context->SelfUrl, array("index.php", "categories.php", "discussions.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))){ $content = <<< ENDCODE <br><strong> <font size=\"2"> My Heading Here </strong></font> <br> <a href=\"http://google.com"> Google</a><br> <a href=\"http://yahoo.com"> Yahoo</a> ENDCODE; $Panel->AddString($content,150); } ?> [/code] I think it's the "SelfUrl, array" part of the code that's screwing up my external link.  But, I am very new to PHP and don't fully understand the code above.  And, what the heck is <<< ENDCODE  ?  Why three opening brackets?  I have never seen this before.  I just want to create a functioning external link. 
  11. Thanks genericnumber1. :D That's perfect, and you really helped me out.  @Azu - Sorry if I wasn't clear enough.  I don't want to block *all* visitors from accessing domain.com, I simply want the targeted visitors to see a specific, targeted landing page (and restrict them to the targeted landing page).  Thanks for your input, though.    Chris
  12. I have created several "targeted" landing pages for a particular niche.  Traffic will be sent to these landing pages using Google Adwords.  For the purpose of this example, let's say the site is about dog training.  Here's what I've got.... domain.com/pitbulls.php ---> Displays the landing page for pit bulls. domain.com/poodles.php ---> Displays the landing page for poodles. domain.com/boxers.php ---> Displays the landing page for boxers domain.com/labradors.php ---> Displays the landing page for labradors and so on.  Each landing page is a targeted "opt-in page," which means that the user submits his first name and email address to access the site.  Since the landing page is a targeted "opt-in page", I don't want the person cutting off the subdirectory, and visiting the homepage, which is currently blank. [u]If someone cuts off the subdirectory, I want the site to reload the landing page he was previously on.[/u] For example, if someone lands on domain.com/boxers.php, and he "cuts off" the subdirectory and visits domain.com, then I want domain.com to re-load boxers.php. (Or perhaps restrict domain.com from being loaded.) How can I do this? 
  13. Thanks Andy. Good to know his code is correct. Although, it still leaves me hanging.  If the code is technically correct, why am I getting a syntax error on line 15?  How can this be?
  14. I'm getting a syntax error (on line 15) when I insert the following code into a custom.php file. [code] function random_scheme() { $schemes = glob(TEMPLATEPATH . '/skins/light-gold/schemes/*.css'); if ( $schemes ) { $key = array_rand($schemes); $scheme = basename($schemes[$key]); ?> <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri() . '/skins/light-gold/schemes/' . $scheme; ?>" /> <?php //The bracket below is line 15. } } # end random_scheme() add_action('wp_head', 'random_scheme', 50); [/code] [b]Here's the syntax error I'm getting...[/b] Parse error: syntax error, unexpected '}' in /home/username/public_html/domain_name/blog/wp-content/themes/semiologic/skins/light-gold/custom.php on line 15 I was given this code by someone else who says nothing's wrong with the code.  But, according to the syntax error, it looks like there's a problem with brackets.  He's got 2 closing brackets in a row.  That can't be right..? How do I get rid of the syntax error? 
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.