Ads only for guests
Ads only for guests
Open ur index.php and add after BODY
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. | <?php if($loggedin && $ds['userID'] != $userID) { /* amount of ads / delete or add if u need */ $ads1 =''; $ads2 =''; $ads3 =''; } else { $ads1= '<!-- PASTE GOOGLE ADD 1 CODE HERE-->'; $ads2= '<!-- PASTE GOOGLE ADD 2 CODE HERE-->'; $ads3= '<!-- PASTE GOOGLE ADD 3 CODE HERE-->'; } ?> |
Add it where u need ads
1. 2. 3. | <center><?php echo $ads1; ?></center> |
1. 2. 3. | <center><?php echo $ads2; ?></center> |
1. 2. 3. | <center><?php echo $ads3; ?></center> |
Enjoy ;)
text with shadow
Download jquery+ PastelShadow
insert to index.php
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. | <script type="text/javascript"> jQuery("MY_DIV").PastelShadow( { x: 1, y: 1, blur: 1, color: "#333" } ); </script> |
Delete user not connected (6month)
DElete database user not connected since 6 month
Insert in index.php include("name_your_page.php");
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. | $nextWeek = strtotime('+6 month', time()); $result=safe_query("SELECT userID, lastlogin FROM ".PREFIX."user WHERE `lastlogin`!=0"); while($ds=mysql_fetch_array($result)) { $admin=safe_query("SELECT * FROM ".PREFIX."user_groups WHERE `userID`='".$ds['userID']."'"); $dr=mysql_fetch_array($admin); if($dr['super'] != 1){ $deluserID = $ds['userID']; $Nombres_jours = NbJours(date('Y-m-d', $ds['lastlogin']), date('Y-m-d', time())); $date_limite = NbJours(date('Y-m-d', $ds['lastlogin']), date('Y-m-d', $nextWeek));//6mois if ($Nombres_jours > $date_limite){ safe_query("DELETE FROM ".PREFIX."user WHERE userID='".$deluserID."'"); safe_query("DELETE FROM ".PREFIX."user_groups WHERE userID='".$deluserID."'"); } } } function NbJours($debut, $fin) { $tDeb = explode("-", $debut); $tFin = explode("-", $fin); $diff = mktime(0, 0, 0, $tFin[1], $tFin[2], $tFin[0]) - mktime(0, 0, 0, $tDeb[1], $tDeb[2], $tDeb[0]); return(($diff / 86400)+1); } |
Hosting Addon
I'm recently working on an addon which allowes you to create your own webspell hosting facility ... letting users choose between several different Templates and Webspell versions ... work in progress ...
german topic on webspell.org
http://www.webspell.or...e=forum_topic&topic=30538
Just what Im up to :)
Well Hello,
Im new to site obviously etc.. and i havent coded in a couple of months came back to the scene 2 weeks back so going to be doing some scripts etc..
What Ive Done:
Admin Center (Simple)- Downloadable
Admin Center (Advanced) - Trying to sell it
Registration (Simple) - Downloadable
Chat Room (Simple) - Downloadable
Simple Delete Account Option - Downloadable
Daily Database Backup Option - Complete but on Hold for now
Chat Room For Admins - Complete But On Hold for now
What Im Working on:
Ajax Contact Form - Deadline 1/1/11 (Delayed)
Simple Cup System - Deadline 1/1/11 (Delayed)
Ajax Admin Center - Deadline 1/1/11 (Delayed)
Movie Addon - Deadline 1/1/11 (Delayed)
Login Via Facebook/Twitter - Deadline 1/1/11 (Delayed)
Ajax Forum - Deadline 1/1/11 (Delayed)
Unfortanetly due to Unexpected Circumstances, the mods above have been delayed, However they will be released Soon!
After this going back to Studying non-stop but if you would like to contact me in the meantime
Steam: moetarhini
Msn/Email: moe-tarhini@hotmail.co.uk

