vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Toplist (https://vborg.vbsupport.ru/showthread.php?t=98646)

loonytune15 12-28-2005 02:17 PM

well i'm looking forward to the release, hope to see it when i come online tommorrow.

divided_by_fear 12-28-2005 04:48 PM

Quote:

Originally Posted by derekivey
All the files except in.php and out.php have changed lol. Also, all of the templates have been changed so I could make them XHTML complient. This version is going to be a pretty major release lol.


hell yeah ill just copy the work ive done and redo it... i still thing on the part where it gives the code to them you should add the image above that in another table and still have the code under it makes it look so much nicer and they can see what there copying

derekivey 12-28-2005 04:49 PM

Version 1.0.5 Released! Please follow the install.txt file on how to upgrade or install. Let me know if theres any problems.

Derek

divided_by_fear 12-28-2005 04:50 PM

damn lol i just had wrte that lol you must have been typing the same time i was :)

derekivey 12-28-2005 04:54 PM

Here are some more screenshots...

divided_by_fear 12-28-2005 05:05 PM

i needd to see if you could paste the template Toplist i edited mine lol i wanted to basicly start fresh think i should just revert it?

derekivey 12-28-2005 05:10 PM

Yes, you can just revert it.

divided_by_fear 12-28-2005 05:11 PM

allso i see when you edit the site you can chose the Categories but do they show on the page anywhere?

derekivey 12-28-2005 05:12 PM

No, right now you can only select the category through the drop down. I am thinking of showing what category they are in under their name in the Toplist.

divided_by_fear 12-28-2005 05:13 PM

ahh never mind i see it after revert lol

divided_by_fear 12-28-2005 05:14 PM

yeah that would be nice i like it how it is now its very nice i have a custom request lol... i wanted to remove the go button and use a image how and where do i change that?

derekivey 12-28-2005 06:25 PM

You would edit the 'Toplist' template, not sure what code you would use to have it be an image though.

divided_by_fear 12-28-2005 06:28 PM

yeah im going to mess with it now.. its just a matter i think of changing a lil coding around :)

mindfrost82 12-28-2005 06:38 PM

I get a vB database error when I try to edit a site from within the admincp. If you click on edit, it'll bring you the site info fine, then when you click on the button when you're finished I get a db error.

divided_by_fear 12-28-2005 06:41 PM

this is how i changed mie up to change the go to a image

<input type="image" src="disturbed/buttons/lastpost.gif" alt="Select A Category" />

derekivey 12-28-2005 07:48 PM

Quote:

Originally Posted by mindfrost82
I get a vB database error when I try to edit a site from within the admincp. If you click on edit, it'll bring you the site info fine, then when you click on the button when you're finished I get a db error.

Whats the error you get?

divided_by_fear 12-28-2005 08:18 PM

hmm i didnt get no error i just edited my site and it said Site Edited Successfully

derekivey 12-28-2005 09:19 PM

Yeah, I don't get it either.

mindfrost82 12-28-2005 09:56 PM

Quote:

Originally Posted by derekivey
Whats the error you get?

nvalid SQL:
UPDATE toplist_sites SET
name='Forum Topsites',
url='http://www.forumtopsites.com/in.php?site=1109036166',
description='Toplist Site',
image='',
`in`='2',
out='16',
rating_total='',
rating_average='',
votes='',
status='active',
cid='1' WHERE id='6';

MySQL Error : Unknown column 'rating_total' in 'field list'
Error Number : 1054

derekivey 12-28-2005 11:10 PM

Make sure you have rating_total, rating_average, and votes filled in. Thats probably why you are getting that error.

divided_by_fear 12-29-2005 12:50 AM

i think pretty much u have this mode top notch only thing i can think of now lol is maybe add the Categories to the table for each... but other then that there aint much more you can ask for with it lol its working perfect and it has many features... maybe you could tweak my block that i used on my site to have it where people can link you easier on vbadvanced... its basiclly like a php nuke link us block

derekivey 12-29-2005 01:12 AM

I'm planning on adding to the next release the option to add many different images they can put on their site. Also, one of the images will have their rank, in hits, out hits, and rating.

divided_by_fear 12-29-2005 01:32 AM

damn cant wait to see that lol i wonder how that will be done

divided_by_fear 12-29-2005 04:15 AM

found a bug i think when you go to edit a site on the main page(edit_site.php) ok when it gives you the link back to the site so they can get hits its not right... like for example my buddy just asked me for his code again cause i have it where they cant edit them ok and his site id is 14 and its showing 13 and it would give hits for another site then...

here is what i mean this is the code it gives

<a href="http://www.blah.com/in.php?id=13" target="_BLANK"><img src='http://www.blah.com/images/blah.gif' border='0'></a>

when in admin his Site ID is 14 why would that do this?

derekivey 12-29-2005 02:45 PM

I'll take a look and relea e a patch if I can confirm it.

Derek

derekivey 12-29-2005 03:52 PM

Ok, bug fixed. Just upload the attached edit_site.php file and overwrite the old one, and replace the Toplist_HTML_Code template with the following code:
PHP Code:

<if condition="THIS_SCRIPT == add_site"
$vbphrase[toplist_add_successful]<br />
<if 
condition="$vbulletin->options['toplist_moderate_sites'] == 1">
$vbphrase[toplist_sites_moderated]<br />
<else />
$vbphrase[toplist_sites_shown_instantly]<br />
</if>
<else />
$vbphrase[toplist_edit_successful]<br />
</if>
$vbphrase[toplist_html_code_message]:<br />
<if 
condition="THIS_SCRIPT == add_site">
<
textarea cols="40" rows="4"><a href="$vboptions[bburl]/in.php?id=$sr[id]target="_BLANK">$_POST[sitename]</a></textarea>
<else />
<
textarea cols="40" rows="4"><a href="$vboptions[bburl]/in.php?id=$idtarget="_BLANK">$_POST[sitename]</a></textarea>
</if> 

Let me know if you have any problems. I also updated the zip file attached to the first post for those of you who haven't installed this hack yet.

Derek

XtremeOffroad 12-29-2005 04:51 PM

What an easy Install, Seems to work ok so far, One thing though, Is there any way to change the order of the catagories without rewriting them? I forgot to add one and to place it towards the top I needed to rewrite all the existing cats, Hope that made sense.
BTW Clicks install.

derekivey 12-29-2005 05:13 PM

Not yet, I think I'll add a display order feature to the next version. Sorry about that.

XtremeOffroad 12-29-2005 05:23 PM

Quote:

Originally Posted by derekivey
Not yet, I think I'll add a display order feature to the next version. Sorry about that.

Fantastic, Other then that This is a GREAT feature I was hoping to find.
Also on the code for members to add how would I change it to say Vote for us or something similar? rather then just my site name.

derekivey 12-29-2005 11:13 PM

Hi, You would just edit the Toplist_HTML_Code template I believe.

EDIT: Yeah, just open that template and change all instances of $_POST[sitename] to Vote for Us! or something.

XtremeOffroad 12-30-2005 04:56 AM

Quote:

Originally Posted by derekivey
Hi, You would just edit the Toplist_HTML_Code template I believe.

EDIT: Yeah, just open that template and change all instances of $_POST[sitename] to Vote for Us! or something.

I'll give it a shot tomorrow, Thanks.

loonytune15 12-31-2005 12:54 AM

Mate this is working great, Congrats on all your hard work.

Divided, how did you do that vbacmps module? I would like to add something like that into mine aswell..

Also derekivey any chance in the next release we could have at the bottom of the toplist page somethig saying here are our buttons and how to add to the list or something like that?

derekivey 12-31-2005 01:50 AM

Yeah, I'll see about adding that. Can you give me a better example of what you mean?

loonytune15 12-31-2005 01:58 AM

Umm like a box at the bottom of the page in which the admin can add through the admincp any images that the other sites can use for us.

eg this thread has all my buttons in it.
http://www.monster-designs.com/forum...ead.php?t=1048

So i'd like it to be shown in the toplist area...

On another note has the same error about the rankings been fixed in the toplist random site on the vbacmps been fixed?

derekivey 12-31-2005 03:17 AM

Ok, I'll take a look.

Yes the rankings in the vbacmps module have been fixed.

loonytune15 01-01-2006 12:31 PM

Also can we have an option in the admin cp for adding in sites please?

derekivey 01-01-2006 02:33 PM

Yup, that is going to be in the next release.

georg1000 01-01-2006 05:27 PM

hello,
coud you please help me with the following problem: If I activate the toplist in forumhome, and the users click on one of the banners, the desired hp opens in the same browser window. I would like a new window to open for the new hp.

In the ACP I have activated "open in new window". This works fine in the "toplist site", but not in "forumhome".

Thanks,

Georg

derekivey 01-01-2006 06:39 PM

Hi,

Sorry about that. It's a bug. Heres how to fix it.

Open: Toplist_Sites_Code template

FIND:
PHP Code:

<a href="$vboptions[bburl]/out.php?id=$timage[id]"

Replace With:
PHP Code:

<a href="$vboptions[bburl]/out.php?id=$timage[id]target="_BLANK"

Save the template.

Derek

georg1000 01-01-2006 07:33 PM

Thanks a lot.

Georg


All times are GMT. The time now is 05: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.02176 seconds
  • Memory Usage 1,828KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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