Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Members Online Today v1.1
Topic Started: Aug 5 2008, 10:48 AM (5,422 Views)
Michael
Member
[ * ]
My previous one wasn't working so I just had to rewrite it o.0
Used code of Agent Moose I found somewhere, uses jQuery, which I can't do and it's damn small!
Preview: http://s1.zetaboards.com/newbb/index/
Download PHP files: Click
Footers code:
Quote:
 
<script>
/*
Members online today v1.1
By Michael of http://www.phantom-designs.net
This code may not be re-distributed or edited without the authors permission.
*/
file = "FILE";
img = "MARKER";
document.write("<scr"+"ipt src='"+file+"?act=index'></scr"+"ipt>");
if(!document.getElementById("top_info").innerHTML.match(/Guest/i)){
user = document.getElementById("top_info").getElementsByTagName("a")[0].innerHTML;
id = document.getElementById("top_info").getElementsByTagName("a")[0].href.split("/profile/")[1];
document.write("<scr"+"ipt src='"+file+"?act=go&user="+user+"&id="+id+"'></scr"+"ipt>");
}
</script>

Replace FILE with the location to the mot.php file and MARKER with the marker.

Edit config.php
Code:
 
<?php
$url = "http://s1.zetaboards.com/newbb"; //Example: http://sX.zetaboards.com/NAME
$dbname = "DATABASE NAME";
$dbuser = "MySQL USER";
$dbpass = "MySQL PASSWORD";

mysql_connect("localhost", $dbuser, $dbpass) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());
?>

Replace the capitalized words and the board url with yours.

Run table.php
Simply visit the page, so http://www.domain.com/table.php, this will create the table.

SUPPORT ONLY @ HTTP://WWW.PHANTOM-DESIGNS.NET
Offline Profile Quote Post Goto Top
 
HaX3
Member Avatar
Member
[ *  * ]
Thank you for re making the code but its still not getting anywhere for me :| what am I doing wrong I did everything you asked :(

or does it set itself at midnight?
Edited by HaX3, Aug 10 2008, 03:15 PM.
Offline Profile Quote Post Goto Top
 
Dark Warrior
Member
[ * ]
This looks good. But can you please provide installation instructions, all we have is a couple pieces of code and some php files and no idea what to do with them.
Offline Profile Quote Post Goto Top
 
HaX3
Member Avatar
Member
[ *  * ]
you need a server with mySQL, hyperphp.com works.

but for some reason this code only seems to direct me to phantom designs?

is this a joke with some marketing strat or what.
Offline Profile Quote Post Goto Top
 
Michael
Member
[ * ]
No lol :P
Could be only one problem, how does the variable url looks in your config.php?
$url = "http://sX.zetaboards.com/NAME";
must be exactly like that, http://sX.zetaboards.com/NAME/ fails.
I did that for protection, because you probably don't want others to use your code and save usernames from other boards.
Edited by Michael, Aug 13 2008, 05:50 AM.
Offline Profile Quote Post Goto Top
 
HaX3
Member Avatar
Member
[ *  * ]
Michael
Aug 13 2008, 05:49 AM
No lol :P
Could be only one problem, how does the variable url looks in your config.php?
$url = "http://sX.zetaboards.com/NAME";
must be exactly like that, http://sX.zetaboards.com/NAME/ fails.
I did that for protection, because you probably don't want others to use your code and save usernames from other boards.
here my config file

<?php
$url = "http://s15.zetaboards.com/Gashu_Group_Forums/"; //Example: http://sX.zetaboards.com/NAME
$dbname = "hp_2222994_zetaboards";
$dbuser = "hp_2222994";
$dbpass = "----- password hidden";

mysql_connect("sql210.hyperphp.com", $dbuser, $dbpass) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());
?>

my URL to my board is http://forums.gashu-group.net
Edited by HaX3, Aug 13 2008, 06:10 AM.
Offline Profile Quote Post Goto Top
 
enigmaopoeia
Member Avatar
Member
[ * ]
I would really love this code on my forum, so far I done everything as instructed and I have mySQL with Dreamhost, my website's server. Now excuse my noobish question, but how exactly do you upload php files? That's the only step I need in order to complete this code. ^^;;
Offline Profile Quote Post Goto Top
 
HaX3
Member Avatar
Member
[ *  * ]
enigmaopoeia
Aug 14 2008, 06:05 PM
I would really love this code on my forum, so far I done everything as instructed and I have mySQL with Dreamhost, my website's server. Now excuse my noobish question, but how exactly do you upload php files? That's the only step I need in order to complete this code. ^^;;
You use an FTP client, I use file zilla, its much better than browser upload because you can drag and drop, your FTP information should be given by your host, any problems PM me and Ill help you out.

http://filezilla-project.org/download.php?type=client
Offline Profile Quote Post Goto Top
 
HaX3
Member Avatar
Member
[ *  * ]
After Constant strain I cracked it, it works for me now :D:D:D

anyone need help with it PM me and i can sort somming out for ya ^_^ coz the creator of this code is barly on.
Offline Profile Quote Post Goto Top
 
SkyDreams
Member Avatar
Member
[ *  * ]
Is there not an easier way of doing this? This just seems a little too efforty for what it does.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply