Jump to content

Recommended Posts

Posted

So i've been editing and re-editing the template in the ACP for the better part of the last hour to no avail. No matter what i put or where I put it, it simply does not show up on the forum itself.

 

I'm at a loss as to what to do now.

 

If anyone has any suggestions, or has experience similar problems in the past, it would be much appreciated.

Posted

Welcome to the forum dyrymi :goof:

 

Are the files write enabled? Are you receving errors? If you re-edit are the changes you are making still there?

 

Usually it's a case of not having proper permissions to save the changes.

Posted

:goof: Welcome to the Family dyrymi :lol:

 

and your new home!

 

You need to find the file you are trying to edit and change the permissions to 777

whike you are editing that file,

then change it back to 755 when you are done.

 

For me its easier to download the file with ftp

edit it

then upload it back,

no permissions to change

and I can have a back up on my computer.

 

We really are like family here.

So if you need anything,

just ask your new family!

We love to help :lol:

Posted

Hi guys, thanks for the warm welcome (-:

 

All the edits are there when i change them then go back to have a look, but they're not doing anything to the site S:

 

I even tried deleting the link to the Admin CP and it didn't move.

 

I'll see if I can find the files i'm editing adn edit them manually, though I'm not too familiar with the ipb directory structure. Always worked with phpBB up until now.

Posted (edited)

Did some digging through the directory structure and finally found the skin_global.php file and it worked like a charm (-:

 

My next question, i want to add a custom script in there that counts down the number of members in a particular group.

 

Here's my code:

 

>echo "<center>";

mysql_connect("***", "***", "***");
mysql_select_db("***");

$getr = mysql_query("SELECT * FROM *** WHERE mgroup=11");
$numrows = mysql_num_rows($getr);
$licleft = 30 - $numrows;

if($numrows < 30) {
echo "<font color=\"green\" class=\"btext\">There are <font color=\"red\"><b>$licleft</b></font> licenses left before official launch</font></center>";
}
if($numrows == 0) {
echo "<b><font class=\"btext\" color=\"0059AC\">EzyDrop has now launched! Please see below for more details on new license packages and prices.</font></b><br><br>";
}

 

The code works and does precisely what i need, what i'm not really sure on is where to stick it so that it will display where i want it (centred beneath the member_bar).

 

How would I go about it, even if it's a RTFM, or a point in the right direction to said manual that would be much appreciated.

Edited by dyrymi
Posted

Not the one i was after, it was in /sources/classes/class_display.php

 

Had to add in my code there, then i could get it in the board wrapper. My partner has now told me he doesn't want it *sigh*

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...