Wondering if this will always be free? See why free is better.
Started by Norv, May 09, 2006, 08:35:29 PM
QuoteIf you are dying for a solution it may be wise to seek medical attention.
$context['page_title'] = $title;
Quote from: winrules on March 29, 2008, 04:01:37 PMMake sure you have the link right like this:Code Select Expand<a href="', $scripturl, '?action=News">News</a>
<a href="', $scripturl, '?action=News">News</a>
require(dirname(__FILE__) . '/SSI.php');
global $boarddir;require($boarddir . '/SSI.php');
[url=http://en18.tribalwars.net/page.php?page=inbound&screen=info_player&id=player ID]player name[/url]
Quote from: worm82075 on March 17, 2008, 08:47:48 AMAwesome Mod, works like a charm, so I have no problem with it's function, my question is about it's use.Ok, I have archived another site and what I'm working with is about 370 static html pages with css formating. I can see the ability to add the existing code to custom actions editing all links to point to those actions there by integrating the static set into my 1.1.4 SMF forum and it acting as it did before accept it will be surrounded by my header and footer. Ok, that is nearly perfect except I don't want to let guests have access to those actions. From what I've gathered from this thread is that making the action Php rather than Html will give me the ability to put a user check in every action. While I am fairly proficient with html I am not very familiar with Php as of yet. I have a deadline to meet on the construction of my site otherwise I would just be learning Php and doing this on my own.My question is this, Is it possible for me to create the action as php, giving me my user check and then have it parse Html code to construct the page. Or alternatively is there a program available that can convert my html code to php.Any help concerning the possession and regulation of standard html code by SMF would be appreciated. From what I gathered so far in the past 24 hours scouring this site for anything related to this subject is all the solutions in involve transforming my html code to php. Alright well there you have it, I'm sure someone here can enlighten me as to all my options so I can then decide what the best course of action will be. Thanks.Jeremy aka WormEDIT:I have located a program to convert my html to php and it works!So all I really need now is a snipet to place at the beginning of my code to dis allow guests.EDIT 2:ok, I managed to scrounge the first part and it works rightCode Select Expandif ($context['user']['is_guest'])echo "You <FONT color=#ff0000><b>MUST</b></FONT> be a registered member of this site to enter this archive.<BR><BR><BR>";elsei just need to be able to kill it at this point if guest checks trueEDIT 3: Well that didn't take much timeCode Select Expandif ($context['user']['is_guest'])die('Direct Access to this location is not allowed.');elseI have been at this site at least a half a dozen times for help. This is the first time I actually posted thinking what i needed wasn't here. Just took me a little longer to find it this time thats all. Leave it to a bunch of forum creators to set the example of how to run a tight ship. Thanks
if ($context['user']['is_guest'])echo "You <FONT color=#ff0000><b>MUST</b></FONT> be a registered member of this site to enter this archive.<BR><BR><BR>";else
if ($context['user']['is_guest'])die('Direct Access to this location is not allowed.');else
Quote from: NIBOGO on April 19, 2008, 07:36:02 PMi try a simple php code and nothing appear in the action , what i can do?