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)

derekivey 01-01-2007 05:43 PM

You didn't set the In link url setting. It needs to be the URL to your site, forums, or whatever else you want it to be.

Derek

angkor408 01-01-2007 05:46 PM

derekivey, Thank for your quick reaspond! Which .php or html file can I edit to link to my topsite?

Are you talking about the on in Toplist_HTML_Code?

I found this: <td><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>

</tr>
<tr>
<td><textarea name="code1" cols="40" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td>
</tr>

Where can I edit to link to my topsite?

angkor408 01-01-2007 07:57 PM

I think it is working now when I edit this link. Thank! Angkor

I edit from in.php to /forums/toplist.php

I found this: <td><a href="$vboptions[bburl]/forums/toplist.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>

mac27 01-02-2007 03:34 AM

What code removes the image that shows the rank and stuff on an image. It seems that only sites that use the image to link back keep getting deactivated from the toplist.

chatfan 01-02-2007 03:55 PM

Decided to make a little template hack, not complete yet but looks good on my site. Wanted bigger buttons (450x100)

Really like this toplist, works very well. All i need now is for someone to figure out how to fix the random button to fit my layout lol.

My toplist

posted the template hacks in template mods, link is in the addon box.

DementedMindz 01-02-2007 04:24 PM

Quote:

Originally Posted by chatfan (Post 1149216)
Decided to make a little template hack, not complete yet but looks good on my site. Wanted bigger buttons (450x100)

Really like this toplist, works very well. All i need now is for someone to figure out how to fix the random button to fit my layout lol.

My toplist

posted the template hacks in template mods, link is in the addon box.

why would you need to edit the code when all you have to do is go in admincp and change the Toplist Layout since its already included? Use the large buttons one and your fine.

Toplist Layout
Code:

Select the layout you would like to use below. This affects the toplist.php page only.

chatfan 01-02-2007 06:02 PM

I don't like the large button one.

squishi 01-02-2007 08:05 PM

Quote:

Originally Posted by derekivey (Post 1148534)
Screenshot please? Not sure which banner images you mean...

I was referring to what you call buttons, I suppose.
The column that is titled banner, to the right of the site link and description.
For some sites these banners have disappeared both in the backend and in the toplist.

DementedMindz 01-02-2007 10:26 PM

Quote:

Originally Posted by chatfan (Post 1149297)
I don't like the large button one.

to be honest it looks no different then what you have on your site.

derekivey 01-03-2007 01:47 AM

Quote:

Originally Posted by angkor408 (Post 1148620)
derekivey, Thank for your quick reaspond! Which .php or html file can I edit to link to my topsite?

Are you talking about the on in Toplist_HTML_Code?

I found this: <td><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>


</tr>
<tr>
<td><textarea name="code1" cols="40" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td>
</tr>


Where can I edit to link to my topsite?

No it's a setting...

AdminCP --> Toplist --> Toplist Options

look for the In URL setting...

Quote:

Originally Posted by mac27 (Post 1148940)
What code removes the image that shows the rank and stuff on an image. It seems that only sites that use the image to link back keep getting deactivated from the toplist.

You have to edit the Toplist_HTML_Code template (I think thats what I named it).

Quote:

Originally Posted by squishi (Post 1149361)
I was referring to what you call buttons, I suppose.
The column that is titled banner, to the right of the site link and description.
For some sites these banners have disappeared both in the backend and in the toplist.

Did you delete the images/toplist/buttons/sites folder or the files inside it?

angkor408 01-03-2007 03:02 AM

Derekikey, I login to my admincp >toplist>toplist option there no optoin for URL setting.

But what I have done is edit the in.php to my url it work fine now. I'm not sure if other function will work. I was able to click on the image and every site have different ID which seem to link correctly too.

I found this: <td><a href="$vboptions[bburl]/forums/toplist.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>

QUOTE=derekivey;1149592]No it's a setting...

AdminCP --> Toplist --> Toplist Options

look for the In URL setting...


You have to edit the Toplist_HTML_Code template (I think thats what I named it).


Did you delete the images/toplist/buttons/sites folder or the files inside it?[/QUOTE]

Shazz 01-03-2007 04:12 AM

What exactly does store in the mysql database?

squishi 01-03-2007 07:35 AM

Quote:

Originally Posted by derekivey (Post 1149592)
Did you delete the images/toplist/buttons/sites folder or the files inside it?

Of course not. That's why I contact you. I didn't even touch the folder/images.

mac27 01-03-2007 07:39 AM

Hey is there away to add a random link from the toplist to the forum home?

derekivey 01-03-2007 09:56 AM

Quote:

Originally Posted by angkor408 (Post 1149633)
Derekikey, I login to my admincp >toplist>toplist option there no optoin for URL setting.

But what I have done is edit the in.php to my url it work fine now. I'm not sure if other function will work. I was able to click on the image and every site have different ID which seem to link correctly too.


I found this: <td><a href="$vboptions[bburl]/forums/toplist.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>









QUOTE=derekivey;1149592]No it's a setting...

AdminCP --> Toplist --> Toplist Options

look for the In URL setting...


You have to edit the Toplist_HTML_Code template (I think thats what I named it).


Did you delete the images/toplist/buttons/sites folder or the files inside it?

[/quote]
It's called In Redirect URL. It's right under the Sites per Page setting... Your file edit probably isn't going to help as that will be replaced when you upgrade to newer versions...


Quote:

Originally Posted by squishi (Post 1149716)
Of course not. That's why I contact you. I didn't even touch the folder/images.

Can you either paste a link to your site here or PM it to me so I can take a look?

Quote:

Originally Posted by mac27 (Post 1149719)
Hey is there away to add a random link from the toplist to the forum home?

That will be possible once the API is done (hopefully in the next version).

Quote:

Originally Posted by Shazz (Post 1149659)
What exactly does store in the mysql database?

vBulletin settings, all the sites (name, description, in hits, out hits, views, votes (number of ratings), ratings), categories, a table to keep track of who clicked out links or in links to prevent cheating.

That's all that I can think of right now...

squishi 01-05-2007 12:45 PM

Quote:

Originally Posted by derekivey (Post 1149765)
Can you either paste a link to your site here or PM it to me so I can take a look?

Here's the link: Chubbyparade toplist

There are some entries in the toplist that are bannerless, but there's a lot of missing banners.
I know for sure that I uploaded for example the banner for xx-cel, and it was showing fine. But now it's gone.

But not all banners disappeared, only about half of them was not working anymore all of a sudden.

Ninth Dimension 01-05-2007 05:14 PM

You have an error in your upgrade instructions... it says, for the cron-job
Quote:

Filename: ./includes/cron/toplist_rankings.php
but this is meant to be toplink_ranks.php


Also, when you edit a site, it seems to forget which category it's meant to be in...

Shazz 01-05-2007 08:30 PM

Never noticed it went away from the catagory

derekivey 01-05-2007 08:52 PM

Quote:

Originally Posted by squishi (Post 1151301)
Here's the link: Chubbyparade toplist

There are some entries in the toplist that are bannerless, but there's a lot of missing banners.
I know for sure that I uploaded for example the banner for xx-cel, and it was showing fine. But now it's gone.

But not all banners disappeared, only about half of them was not working anymore all of a sudden.

Hmm... Odd. Can you go into PHPMyAdmin, and look to see whats in the imagecode field for one of the sites that the image disappeared on? You can find them in the toplist_sites table.

Quote:

Originally Posted by Ninth Dimension (Post 1151423)
You have an error in your upgrade instructions... it says, for the cron-jobbut this is meant to be toplink_ranks.php


Also, when you edit a site, it seems to forget which category it's meant to be in...

Thanks I must have forgot to change that part in the readme file. I'll get it changed and reupload it.

I'll see if I can confirm the problem with the category too.

derekivey 01-05-2007 09:15 PM

Thanks. I can confirm this and have fixed it for the next version.

Upload the attached file to fix it.

Derek

Shazz 01-05-2007 09:21 PM

[high]* Shazz updates thanx :D[/high]

derekivey 01-05-2007 09:31 PM

zip file also updated to include the fix and the change the readme.

Mecho 01-06-2007 11:41 AM

is that possible in new version that users add URL of their button , not upload in our host ?!?

Thanks .

squishi 01-06-2007 12:33 PM

Quote:

Originally Posted by derekivey (Post 1151563)
Hmm... Odd. Can you go into PHPMyAdmin, and look to see whats in the imagecode field for one of the sites that the image disappeared on? You can find them in the toplist_sites table.

For the XX-cel it is "A3eqssbrC2g6HliNRfTp".
I looked it up on ftp, there is a corresponding file with the same name in the /images/toplist/buttons/sites/ folder.
Why is it not showing anymore? :surprised:

derekivey 01-06-2007 07:23 PM

Quote:

Originally Posted by Mecho (Post 1151854)
is that possible in new version that users add URL of their button , not upload in our host ?!?

Thanks .

Yes, I will add that.

Quote:

Originally Posted by squishi (Post 1151871)
For the XX-cel it is "A3eqssbrC2g6HliNRfTp".
I looked it up on ftp, there is a corresponding file with the same name in the /images/toplist/buttons/sites/ folder.
Why is it not showing anymore? :surprised:

Thanks for getting back to me. I'll take a look at it.

Derek

derekivey 01-06-2007 08:05 PM

Hmm, when I go to http://chubbyparade.com/forum/images...brC2g6HliNRfTp it redirects me to your forums. So maybe that might have something to do with some images now loading?

chatfan 01-07-2007 04:49 AM

Really? You don't see the difference? No big deal I guess but makes me wonder what you use to compare it.

:cool:


Quote:

Originally Posted by DementedMindz (Post 1149452)
to be honest it looks no different then what you have on your site.


DementedMindz 01-07-2007 05:25 AM

my eyes lol

squishi 01-07-2007 08:24 AM

Quote:

Originally Posted by derekivey (Post 1152158)
Hmm, when I go to http://chubbyparade.com/forum/images...brC2g6HliNRfTp it redirects me to your forums. So maybe that might have something to do with some images now loading?

You are right, that file is not loading in a browser.
But I don't see why?

Take for example this one from the same folder, it loads fine.
http://chubbyparade.com/forum/images...RPa2M9WwSVmvDT

:confused:

chatfan 01-09-2007 03:40 AM

Quote:

Originally Posted by DementedMindz (Post 1152415)
my eyes lol

Oh I'm sure its not going to look like your eyes, unless they look like a list of banner pics?

Actually the main difference is: I put all site info under the banner and its not boxed up.

DementedMindz 01-09-2007 05:12 AM

ok and you can do the same thing once again with the way he has it coded now. but if your happy thats all that matters.

derekivey 01-10-2007 03:37 AM

Quote:

Originally Posted by squishi (Post 1152468)
You are right, that file is not loading in a browser.
But I don't see why?

Take for example this one from the same folder, it loads fine.
http://chubbyparade.com/forum/images...RPa2M9WwSVmvDT

:confused:

Can you try temporarily removing that redirect thing and see if it works then?

Derek

chatfan 01-10-2007 10:51 AM

Quote:

Originally Posted by DementedMindz (Post 1154324)
ok and you can do the same thing once again with the way he has it coded now. but if your happy thats all that matters.

Just for you because i love you so :rolleyes: the difference:

Original Look

Hacked version

squishi 01-20-2007 07:16 AM

Quote:

Originally Posted by derekivey (Post 1155192)
Can you try temporarily removing that redirect thing and see if it works then?

Derek

I found it. The files had the wrong owner permissions and could only be read by the server.

derekivey 01-20-2007 03:40 PM

Ok, Great! Glad it's working now.

Derek

chatfan 01-25-2007 10:01 AM

Hi folks,

Quick question: is it possible to add another protocol to the url validation?

I found this in the add_site.php and edit_site.php:

PHP Code:

//------------------------------------------------------------
// Make Sure the URL Submitted is Valid.
//------------------------------------------------------------
            
$check_url substr($vbulletin->GPC['url'], 07);
            
            
            if (
$check_url == "http://")
            { 


My knowledge of IF arguments faded with the selling of my Amiga 12 years ago, I hope someone can whip up an example.

Would like to add two more protocols for radio and chat.


The link check will have to be disabled off course (shame, briliant feature)


Thanks!

derekivey 01-25-2007 10:07 AM

Try replacing

if ($check_url == "http://")

With:

if ($check_url == "http://" OR $check_url == "protocol://")

Replace protocol with the protocol.

If the protocol is longer than http, you will have to add another $check_url var (different name though, and change the 7 to the total amount of characters including the :// part.

Derek

chatfan 01-25-2007 06:14 PM

Thanks that worked!

Is it possible to do this:

if ($check_url == "http://" OR $check_url == "protocol1://" OR $check_url == "protocol2://")

anyway, thanks again.

akulion 01-29-2007 05:48 AM

hi what am i suppsed to put in these feilds when creating a scheduled task?

varname

Log Phrase

Description

cos otherwise it just says "please fill in all required feilds"

thanks
aku

derekivey 01-29-2007 09:50 AM

Quote:

Originally Posted by chatfan (Post 1167166)
Thanks that worked!

Is it possible to do this:

if ($check_url == "http://" OR $check_url == "protocol1://" OR $check_url == "protocol2://")



anyway, thanks again.

You would have to make a new $check_url variable (with a different name), and change the 7 in the function to the number of characters of the protocol you want to check.

Quote:

Originally Posted by akulion (Post 1169553)
hi what am i suppsed to put in these feilds when creating a scheduled task?

varname

Log Phrase

Description

cos otherwise it just says "please fill in all required feilds"

thanks
aku

Please see the readme file. They are listed there.

Derek


All times are GMT. The time now is 10:58 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.06391 seconds
  • Memory Usage 1,860KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (26)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