Coding / Developers
The top users page was created as an extension for my profile page view counter mod. It works a little differently than the default one and counts non-member views as well.
July 24, 2006 5:52 pm
Looks like you fixed it?

Anyway, keep in mind that the apostrophe periods '. are for variables only.
Like in the line below the '. should not appear before signup.php like it does, it should only appear before a variable. So instead of(from the first code you posted):

PHP:
$refer_url = !empty($phpfox_config_profile['htaccess_url']) ? ''$VAR[] .'/'signup.php?refer=$VAR[4] .'' 


it would be:

PHP:
$refer_url = !empty($phpfox_config_profile['htaccess_url']) ? ''$VAR[] .'/signup.php?refer='$VAR[4] .'' 


You use '. when you are trying to have a variable work inside other apostrophes. For example if you had:

$DATA = 'Hello, '.$VAR[4].'';

You need the '. .' around $VAR[4] or it will just say $VAR[4] instead of the user's name

I think the reason what you changed it to worked is because instead of apostrophes you used quotations " which do translate variables in general
July 24, 2006 8:38 pm
This could be good, but also bad. A bad idea in that someone could use your intellectual idea and develop something before you finish. Its like giving out your trade secretes to someone without having him or her sign a non-disclosure. However, most of us are just reinventing the wheel on most our ideas.



Quote:
Originally posted by: Glen
I think it would be a good idea for all developers who have mods in creation to post them up, this is so that theres not a few people making the same thing and people dont waste their time

THIS IS NOT THE AREA TO ASK FOR MODS, PLEASE START A SEPERATE THREAD

This is so that developers dont overlap each others work, and that all developers can benefit

Thanks

Glen.
July 25, 2006 9:31 am
Quote:
Originally posted by: Clownpaint
I need to know where I can manually edit the users account level, eg. VIP, Gold etc.

Where is it hidden in the database? I can't seem to find it! sad


It's under the `user` table in the `type` field. It is set by number. Admin is 0, gold is 1, vip is 2, normal is nothing

Looks like staff is also 0, but then you put a 1 in the `admin` row
July 25, 2006 11:26 pm
Here's an onpage factor you can use now to improve your seo:

- do your keyword research for your site (index) and add them in your main title tags
- make specific sections such as say "forums" for example, cross-linked throughout your site in the footer with "your keywords forum" in the anchor text
July 26, 2006 9:25 am
I really don't think that this request is screwing up anything....I guess the only thing I think is screwed up is that the site was designed with no thought to SEO or ad targeting in the first place. I mean all the fancy code and gagets in the world aren't what make you money...SEO and ad optimization are what make you money. I don't know about anyone else by my users certainly aren't in any hurry to pay me for hanging out on my site.

Alan
July 27, 2006 3:32 pm
../profile.php line 79:

PHP:
$b phpfox_sql_query("user","`user`,`id`,`friends_only`","WHERE `id` = '$_GET[id]'",TRUE); 


So the id for the current profile's user can be retrieved with $_GET[id] or $b[id].

So you could do something like:

$retrieve = mysql_query("SELECT `views` FROM `user` WHERE `id` = '$b[id]'");
$viewings = mysql_fetch_array($retrieve);
$viewnum = ($viewings[views] + 1);
mysql_query("UPDATE `user` SET `views`='$viewnum' WHERE `id` = '$b[id]'");
July 28, 2006 4:34 pm
Thanks Dejavous and everyone else for caring. smile

Quote:
Originally posted by: Dejavous
Personally, I think your mods are great and very reasonably priced.

Keep up the good work man and just ignore the haters wink

Cheers,
Deja.
July 30, 2006 2:57 am
those are just variables in that file. you would need to add new veriables there then in index.php assign the new variables just like those were made

i have this on mysubcity.com but it doesnt show vip online

gold online



it just shows totals
July 30, 2006 6:10 pm