vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Popular Links Hack (https://vborg.vbsupport.ru/showthread.php?t=48241)

maestrosdelweb 01-27-2003 10:00 PM

Popular Links Hack
 
This hack will save the urls posted in the messages of your forum and count the visits to each url. Then you'll be able to list the popular Urls of your forum in a separate page.

Hack Facts:
New DB Table: 1
New Files: 2
File Modifications: 1
New Templates: 2
Template Modifications: 1

Download the .zip and follow the Install.txt file.

Any comment will be apreciated.

maestrosdelweb 01-28-2003 06:52 AM

The live demo can be accesed in:
http://www.forosdelweb.com/links_out.php

Enjoy it..

And by the way this is my first hack.

I hope its useful.

Davey 01-28-2003 07:55 AM

Cool man, this hack looks sweet!
Thanks!! :).
Keep up the good work.

Dave.

PS: /me installs ;).

Automated 01-28-2003 09:15 AM

A very interesting hack :p

Davey 01-28-2003 09:19 AM

Ah found a bug :P.
It uses http://www.yoururl.com/out.php?http://www.otherurl.com
It interprets it as a url, and doesn't redirect to http://www.otherurl.com.
Can you fix it?

Dave.

Davey 01-28-2003 12:43 PM

Nevermind it seems too buggy for me.
I'm on the brink of releasing my script and I need urls to function correctly, seeing as my attachments don't.
[high]* Davey uninstalls.
[/high]
Sorry.
Maybe another time :).

Dave.

maestrosdelweb 01-28-2003 01:10 PM

Davey. If I can help you somhow to make it work let me know. Your error is weird.

Slynderdale 01-28-2003 02:50 PM

You should url encode the right url before you output it or youll get errors with urls.

Slynderdale 01-28-2003 02:56 PM

hmm, see if this works:

find:
PHP Code:

  $hyperlink iif(trim($hyperlink)=="" or $hyperlink==$urliif(strlen($url)>55,substr($url,0,35)."...".substr($url,-15),$url) ,$hyperlink);
  return 
"<a href=\"/out.php?$righturl\" target=\"_blank\">".str_replace('\"''"'$hyperlink)."</a>";


above it add:
PHP Code:

$righturl htmlentities(urlencode($righturl)); 

in out.php find:
PHP Code:

$UrlAdr $_SERVER['QUERY_STRING']; 

under it add:
PHP Code:

$UrlAdr urldecode($UrlAdr); 


tell me if that works.

Dean C 01-28-2003 03:48 PM

Looks like a very nice hack - i might just convert this to suit my needs :)

Thanks

- miSt


All times are GMT. The time now is 10:03 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.00988 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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