dyrymi Posted March 24, 2005 Posted March 24, 2005 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. Quote
TCH-Bruce Posted March 24, 2005 Posted March 24, 2005 Welcome to the forum dyrymi 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. Quote
TCH-Don Posted March 24, 2005 Posted March 24, 2005 Welcome to the Family dyrymi 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 Quote
dyrymi Posted March 24, 2005 Author Posted March 24, 2005 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. Quote
dyrymi Posted March 24, 2005 Author Posted March 24, 2005 (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 March 24, 2005 by dyrymi Quote
TCH-Bruce Posted March 25, 2005 Posted March 25, 2005 Check the skins_boards.php file. I think that's the one you are looking for. Quote
dyrymi Posted March 25, 2005 Author Posted March 25, 2005 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* Quote
TCH-Bruce Posted March 25, 2005 Posted March 25, 2005 Glad you found it. Sorry he no longer wants it. Quote
dyrymi Posted March 25, 2005 Author Posted March 25, 2005 lol, I added it back in to both the forum and main site and i'll see how long it is before he realises that it's there d: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.