vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Toplist Hack (https://vborg.vbsupport.ru/showthread.php?t=38076)

Warlord 11-09-2002 01:50 AM

Ok, I've made a few changes...

The members banner now leads to their site, as does the link with their site name, I got rid of the button code stuff.

I do have a question...

What code would I use to create my own (hosted on my server) button for people to put on their site which they can click and have their votes recorded?

I want to add this code to the add site and edit site features.

Warlord 11-09-2002 10:19 PM

Anybody home? :D I'm kind of dead in the water about promoting this thing until I get the code they need to put on their web page.


I need the code to put in the textarea on the add site page:

http://www.superherochat.com/forums/...php?action=add

And I also want to put it on the edit site page (in case they lose the code):

http://www.superherochat.com/forums/...hp?action=edit

Ok, I think I may have figured out the code, but how do I get it to appear on the page without becoming active? I can't put it in the textarea box, because I need the php to stay active, AND keep the html inactive....


This is the code I came up with...

PHP Code:

<a href="http://www.superherochat.com/forums/toplist.php?action=in&topid=$topid"><img src="http://www.superherochat.com/images/vote.jpg" border=0 height=142 width=113 alt="Vote for this site on the Superhero Chat Top Fansites!"></a

Any suggestions?

Warlord 11-09-2002 10:42 PM

P.S. That's only the code for the edit site feature, for after they register a site to the list.. I have no clue on how to come up with code to do it before they actually register.. it'd have to be some sort of counter (i.e. the last site to register was topid=4 so the next person to click register would get topid5, but I'm clueless as to how I would set that up on the register page)

Warlord 11-09-2002 11:20 PM

ok, I figured it out for the edit site feature.. seems php is still active in textarea tags and html isn't, so I just put it in there...

But I still don't know how to do it with the "add site feature" :(

Warlord 11-10-2002 09:12 PM

Is anyone else having problems with the Edit SIte feature? It says my info has been updated, but it doesn't actually update it. Anyone have the fix for this?

Warlord 11-10-2002 11:44 PM

Quote:

Originally posted by ManagerJosh
Here is a patch to correct the sorting issue on the toplist. This corrects the sorting issue though I'm not sure what Slynderdale had in mind.

This addresses the problem earlier stated by Slynderdale:


This patch adjusts settings in the MySQL so that it handles the sorting properly.

Be Sure to Back Up Your Database in case something happens.

Run the following MySQL query in PhpMyAdmin:
PHP Code:

ALTER TABLE `toplist_sitesCHANGE `topid` `topidINT(11UNSIGNED NOT NULL AUTO_INCREMENT

After running the MySQL Query, log out of your Database, and view your TopList. It now sorts properly. In Version 2.0, I'm not sure what changes will be made to sort it properly, but hopefully what I did is what Slynderdale had in mind.

Enjoy!


GAHHH! Now I'm having the problem with the sites being in the wrong order... I tried that sql query above and it had no effect. :(

Anyone offering any support on this thread or am I just talking to myself?

Warlord 11-11-2002 09:55 PM

bump

Warlord 11-12-2002 02:45 AM

Ok, well since nobody wanted to help me, I figured it out by myself...

To fix the sorting issue run this sql query...

PHP Code:

ALTER TABLE `toplist_sitesCHANGE `topin` `topinINT(11UNSIGNED NOT NULL AUTO_INCREMENT

ManagerJosh had it close, but had the topid instead of topin.

Warlord 11-12-2002 02:59 AM

Still need help with that edit site feature though.. if anyone wants to help me out.


Pretty Please with a cherry on top? :D

Warlord 11-12-2002 09:43 PM

Can someone at least answer this thread? I'm starting to think I've been 'secretly banned' or something.. lol..

*Climbs to tallest thread and bellows out....*

HELLO!

*echo resonates throughout the canyon*


All times are GMT. The time now is 11:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01263 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete