Discuss: Revolution style released!

Found a bug? Miss something? Want to leave a comment about this site?
Then this is the forum to post in.
Forum rules
No phpBB Support in this Forum! If you want support for your forum, go here.
User avatar
Semi_Deus
Past Contributor
Past Contributor
Posts: 405
Joined: 28 Sep 2007, 23:52
Location: the Netherlands
Contact:

Re: Discuss: Revolution style released!

Post by Semi_Deus »

Yes that article is a clue, but the clue is not proper.
It uses:

Code: Select all

<li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_INDEX}</span></a></li>&nbsp;&nbsp;&nbsp;&nbsp


The
basename($_SERVER['SCRIPT_NAME'])
is not the correct code to use I believe.
Its something similar, but I am not a php coder, so I'm not entirely sure what it was again.
Either:
IF$_SERVER['SCRIPT_NAME']

Or else
IF SCRIPT_NAME


If someone could correct me on this..
Igor?
Image
Keep an eye on us, were back in business..
User avatar
cherokee red
New member
New member
Posts: 17
Joined: 22 Dec 2006, 20:56
Real name: Kenny
Location: Airdrie, Scotland
Contact:

Re: Discuss: Revolution style released!

Post by cherokee red »

using
<!-- IF SCRIPT_NAME eq 'blah' -->
seems to work fine for me :)
blah you be the name of a php file. You don't need to add the .php extension and that is already assumed.
My music // 6 String Romance // My MODs Site
Going to be in Glasgow feb 26th 2009? Come see me play @ Bar Bloc
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Discuss: Revolution style released!

Post by igorw »

The solution posted would work, but is not what any coder who understands the template system would like to see. :D
User avatar
MKByte
New member
New member
Posts: 4
Joined: 30 Mar 2009, 01:06

Re: Discuss: Revolution style released!

Post by MKByte »

Thanks for the help everyone

eviL<3 wrote:The solution posted would work, but is not what any coder who understands the template system would like to see. :D


I'm hard core vbscript, got semi proficient with php4 but have not touched that language for couple of years now.

Got it working thanks.
That code looks like abbreviated php is that right?
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Discuss: Revolution style released!

Post by igorw »

It's basically abuse of the template system by using PHP code instead of template variables.
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Discuss: Revolution style released!

Post by Obsidian »

eviL<3 wrote:The solution posted would work, but is not what any coder who understands the template system would like to see. :D


Agreed. *gags*
Lone Wolf
New member
New member
Posts: 2
Joined: 18 Apr 2011, 20:43

Re: Discuss: Revolution style released!

Post by Lone Wolf »

Hello all.

I'm not very good with updating styles etc, even with tutorials and KB articles. I was just wondering if this style will be updated to 3.0.8, or can I use it for 3.0.8 anyway?
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Discuss: Revolution style released!

Post by RMcGirr83 »

As the style stands now, no it will not work correctly on a 3.0.8 forum.
Post Reply