Firefox PHP

Asked my template question is the wrong section, so here we go again: How to edit the classic template?

Posted by TTV 
As derived from this question which was placed in the wrong section:

[www.phorum.org]

I am trying to edit the classic template to look like this:

[feyenoord.startpagina.nl]

Yeah i know it is not the best looking site graphically, but it is what my audience would love to see... Because they have been using it for years now, so i gave them the choice to choose between templates....

So far i have been able to set the colors etc... The problem i do have is how to code in images to add to sticky posts, i a have very little knowledge on how to work with code, but i try to DIY myself through it. This time i must admit i am completely stuck on how to do it, i really have no freaking idea on what to change at all...

There was an old thread that explained how to do it for version 5.1, but there is no thread that explains how to do it in 5.2 so no luck....

[www.phorum.org]

So can someone, anyone help me out with my question?
No guarantee everything works.

Add this to settings.tpl provide a sticky.gif, and a new.gif
Language: PHP
{! --- This is the sticky for messages in the thread list --- } {VAR stick ';<img src="templates/classic/images/icon_sticky.gif" border="0" width="8" height="8" alt="" />';}   {! --- This is the N for new messages in the thread list --- } {VAR neuw ';<img src="templates/classic/images/new.gif" border="0" width="8" height="8" alt="" />';}

Locate in list.php
Language: PHP
{marker} {IF MESSAGES->sort PHORUM_SORT_STICKY}<span class="PhorumListSubjPrefix">{LANG->Sticky}:</span>{/IF} {IF MESSAGES->moved}<span class="PhorumListSubjPrefix">{LANG->MovedSubject}:</span>{/IF} <a href="{MESSAGES->URL->READ}">{MESSAGES->subject}</a> {IF MESSAGES->new}&nbsp;<span class="PhorumNewFlag">{MESSAGES->new}</span>{/IF} {IF MESSAGES->pages}<span class="PhorumListPageLink">&nbsp;&nbsp;&nbsp;{LANG->Pages}: {MESSAGES->pages}</span>{/IF} {IF MODERATOR true}<br /><span class="PhorumListModLink"><a href="{MESSAGES->URL->DELETE_THREAD}">{LANG->DeleteThread}</a>{IF MESSAGES->URL->MOVE}&nbsp;&#8226;&nbsp;<a href="{MESSAGES->URL->MOVE}">{LANG->MoveThread}</a>{/IF}&nbsp;&#8226;&nbsp;<a href="{MESSAGES->URL->MERGE}">{LANG->MergeThread}</a></span>{/IF}

Replace with
Language: PHP
{IF MESSAGES->sort PHORUM_SORT_STICKY} {IF MESSAGES->new}{neuw}<span class="PhorumListSubjPrefix">{LANG->Sticky}:</span><a href="{MESSAGES->URL->READ}">{MESSAGES->subject}</a> {ELSE} {stick}<span class="PhorumListSubjPrefix">{LANG->Sticky}:</span><a href="{MESSAGES->URL->READ}">{MESSAGES->subject}</a> {/IF} {ELSEIF MESSAGES->moved}<span class="PhorumListSubjPrefix">{LANG->MovedSubject}:</span><a href="{MESSAGES->URL->READ}">{MESSAGES->subject}</a> {ELSEIF MESSAGES->new}{neuw}&nbsp;<span class="PhorumNewFlag"></span><a href="{MESSAGES->URL->READ}">{MESSAGES->subject}</a> {ELSE} {marker}<a href="{MESSAGES->URL->READ}">{MESSAGES->subject}</a> {/IF} {IF MESSAGES->pages}<span class="PhorumListPageLink">&nbsp;&nbsp;&nbsp;{LANG->Pages}: {MESSAGES->pages}</span>{/IF} {IF MODERATOR true}<br /><span class="PhorumListModLink"><a href="{MESSAGES->URL->DELETE_THREAD}">{LANG->DeleteThread}</a>{IF MESSAGES->URL->MOVE}&nbsp;&#8226;&nbsp;<a href="{MESSAGES->URL->MOVE}">{LANG->MoveThread}</a>{/IF}&nbsp;&#8226;&nbsp;<a href="{MESSAGES->URL->MERGE}">{LANG->MergeThread}</a></span>{/IF}



Edited 1 time(s). Last edit at 09/08/2014 11:01PM by Scott Finegan.
Thank you Scott!

But sadly is not working, i appreciate the help!!!!
Are you using the correct PHP version on your server that is compatible with both Phorum and the code you are trying to use?
Sorry, only registered users may post in this forum.

Click here to login