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)

Swindont 10-22-2005 03:46 PM

how can i make it so when users are on topsites on user online it says that and not unknown location?

Mr Chad 10-22-2005 04:03 PM

Quote:

Originally Posted by Swindont
how can i make it so when users are on topsites on user online it says that and not unknown location?

I got it to work, very nice.

derekivey 10-22-2005 06:19 PM

Quote:

Originally Posted by Swindont
how can i make it so when users are on topsites on user online it says that and not unknown location?

Huh? It should say that already... See screenshot below.

Allan 10-22-2005 08:53 PM

Suggestion: it would be well to be able to edit its site (description, url, buttons url) ;)

derekivey 10-22-2005 11:30 PM

Quote:

Originally Posted by Allan
Suggestion: it would be well to be able to edit its site (description, url, buttons url) ;)

You mean allow the user to edit their site? I plan to add that feature in the next release.

Daniel 10-23-2005 12:57 AM

This is great, thanks!

But where can I edit the "add site" page? I see it says $html - where can I find that?

derekivey 10-23-2005 01:27 AM

You would have to open add_site.php and edit the $html variable in it. The code is there.

Daniel 10-23-2005 05:36 AM

Thanks. Where would I go in add_site.php to edit this though. It's once the site has been submitted, and gives the code to put on their site.
ie:
PHP Code:

<a href='http://www.mysite.com/forum/in.php?id=2' target='_BLANK'>MySite.com</a


Allan 10-23-2005 06:48 AM

Quote:

Originally Posted by derekivey
You mean allow the user to edit their site ?

yes :)

derekivey 10-23-2005 04:08 PM

Quote:

Originally Posted by Daniel
Thanks. Where would I go in add_site.php to edit this though. It's once the site has been submitted, and gives the code to put on their site.
ie:
PHP Code:

<a href='http://www.mysite.com/forum/in.php?id=2' target='_BLANK'>MySite.com</a


Find:
PHP Code:

$html "{$vbphrase['toplist_add_successful']}<br />
{$vbphrase['toplist_html_code_message']}:<br />
<textarea cols='40' rows='4'><a href='
{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>"

And just change:
PHP Code:

<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea



To what ever you want.

Hope this helps.

Derek

JonnyQuest 10-23-2005 07:26 PM

adding categories for sites would be great as well.
nice work.

derekivey 10-23-2005 07:30 PM

Thanks for the suggestion, I will take a look into adding those.

Floris 10-28-2005 10:18 PM

Nice hack Derek! :)

derekivey 10-28-2005 10:24 PM

Thanks Floris :). What all did you want me to add to the Toplist Rules box? I forgot most of it lol.

derekivey 10-31-2005 03:00 AM

Hack Updated to Version 1.0.1. Please see first post for more info. Be sure to follow the Upgrade Instructions really close so that you don't lose the sites in your Toplist when you upgrade. If you have any problems with the hack please post here.

Derek

Allan 10-31-2005 04:56 AM

I am going to take charge of the french translation ;)

derekivey 10-31-2005 09:47 AM

Great Allan Thanks :)

divided_by_fear 10-31-2005 11:05 AM

question on a new install when i goto the add_site page you get a error on internet explorer in the task bar....

Line: 1502
Char:4
Error:Object dosen't support this property or method
Code:0
then it has your sites url /add_site.php

any way to fix that?

Allan 10-31-2005 12:11 PM

French Language for new version:)

divided_by_fear 10-31-2005 12:12 PM

lol does the french version give you that error too?

Allan 10-31-2005 12:42 PM

No error for me, work perfectly with IE and FF

divided_by_fear 10-31-2005 12:44 PM

yeah must be something in his code cause on the add_site page i get that error

derekivey 10-31-2005 06:37 PM

Quote:

Originally Posted by divided_by_fear
question on a new install when i goto the add_site page you get a error on internet explorer in the task bar....

Line: 1502
Char:4
Error:Object dosen't support this property or method
Code:0
then it has your sites url /add_site.php

any way to fix that?

I'll take a look at that and see whats causing that error. I myself haven't gotten that error, so I'll take a look.

Also, Thanks Alan for ReTranslating this :).

Derek

derekivey 10-31-2005 11:09 PM

Ok, I think I have narrowed it down to the Toplist Rules being the cause of it. I am going to look at it and see what is wrong.

azmi 11-01-2005 09:01 AM

great Hack , derekivey (*updated*)

in ACP -> options -> change site -> Description
can you make the field having a break in the text?
try it for example:
Quote:

top topsite....the best site....top topsite....the best site....top topsite....the best site....top topsite....the best site....
you will have a very large site :ermm:
in the field , i manually edit a "<br>" after 30 signs.

and:
when you give only a "www.yoursite.com" as URL, you will have a wrong site.
is there any way to let the script look for a "http://" before the "www" ?

derekivey 11-01-2005 09:34 AM

Quote:

Originally Posted by azmi
great Hack , derekivey (*updated*)

in ACP -> options -> change site -> Description
can you make the field having a break in the text?
try it for example:
you will have a very large site :ermm:
in the field , i manually edit a "<br>" after 30 signs.

and:
when you give only a "www.yoursite.com" as URL, you will have a wrong site.
is there any way to let the script look for a "http://" before the "www" ?

Yeah,

I'll add the http:// part, but I don't understand what you mean about the first part lol.

Derek

azmi 11-01-2005 11:31 AM

Quote:

Originally Posted by derekivey
Yeah,
I'll add the http:// part, but I don't understand what you mean about the first part lol.
Derek

this problem

divided_by_fear 11-01-2005 04:05 PM

derekivey did you ever figure out what was giving that error in the task bar?

derekivey 11-01-2005 06:54 PM

The Javascript error? No I didn't I'm still looking into it :(

divided_by_fear 11-01-2005 10:16 PM

yeah i may install it again and see if i can look at it... im just trying to get use to vbulletin... but am pretty good with nuke :)

derekivey 11-02-2005 01:08 AM

Quote:

Originally Posted by divided_by_fear
yeah i may install it again and see if i can look at it... im just trying to get use to vbulletin... but am pretty good with nuke :)

Ok, Great.

uzman59 11-02-2005 06:31 AM

i have a question about in.php can i change somewhere for ex. when i added site, this hack give a link but only a link i want to link and little toplist pic.

derekivey 11-02-2005 10:05 AM

Please see this post. https://vborg.vbsupport.ru/showpost....2&postcount=50

uzman59 11-02-2005 11:23 AM

Quote:

Originally Posted by derekivey

i think you didnt understand me becasu i want it for ex
a user add his site to my toplist add.site.php give him to a link but only a link i want add site.php give a image link

derekivey 11-02-2005 06:50 PM

Quote:

Originally Posted by uzman59
i think you didnt understand me becasu i want it for ex
a user add his site to my toplist add.site.php give him to a link but only a link i want add site.php give a image link

Yeah, just find that and replace it with the image link code I guess. Or do you mean a dynamic image that shows the rank and stuff?

derekivey 11-02-2005 06:52 PM

For it to give a image link just do this...

Find:

PHP Code:

$html "{$vbphrase['toplist_add_successful']}<br />

{$vbphrase['toplist_html_code_message']}:<br />

<textarea cols='40' rows='4'><a href='
{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>"

Change:

PHP Code:


<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea

To:

PHP Code:


<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'><img src='IMAGEURL' border='0'></a></textarea

Of course change IMAGEURL to the URL of an image you want them to add to their site.

uzman59 11-03-2005 05:45 AM

Quote:

<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>
where will i add image kod?

derekivey 11-03-2005 09:59 AM

No, your supposed to find that and replace it with this:

PHP Code:

 <textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'><img src='IMAGEURL' border='0'></a></textarea

And replace IMAGEURL with the url of the imge you want them to use.

uzman59 11-04-2005 03:30 AM

Quote:

Originally Posted by derekivey
No, your supposed to find that and replace it with this:

PHP Code:

 <textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'><img src='IMAGEURL' border='0'></a></textarea

And replace IMAGEURL with the url of the imge you want them to use.

thanks derek

derekivey 11-04-2005 03:39 PM

No Problem :).

Also, in case anyone is interested, there is a German translation of my hack here.
Special thanks to Hellraider from vbhacks-germany for translating it :).


All times are GMT. The time now is 11:57 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.04284 seconds
  • Memory Usage 1,843KB
  • 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
  • (9)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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