Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by GameCrash GameCrash is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-08-2001 Last Update: Never Installs: 18
 
No support by the author.

Hi, this is my first vB hack so please be patient

This allows you to use a board as a link (UB2k users know this feature). When you set a board as a link every user who joins the board will be redirected to this url

See it in action: http://foren.letzplay.de (german) the last boards are redirections.

This hack has been tested on vB 2.0.1 and vB 2.0.3 but other users have it running on 2.2.1, too.

Please post questions, inspirations and problems in this thread (not per email or pm). Thank you.

New version 1.1a fixed online

Just fixed that one bug in the install description. No need to upgrade if version 1.1a is already running

New version 1.1a online

Fixed a bug that meaned the hit counter didn't work correctly.

There is an update script and an update manual in the zip.

New version 1.1 online

New features: Hit counter, seperate templates, you can define your own target tag

There is an update script and an update manual in the zip.

Download it here

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-12-2001, 03:54 PM
AS_Eagle_1 AS_Eagle_1 is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Great THY !!!
Reply With Quote
  #13  
Old 07-14-2001, 04:58 PM
ThomasP
Guest
 
Posts: n/a
Default

Hi,

wow, I was missing that function!
Great description and hack file btw.

But I have a problem:
I went throught your description (thanks for the german one) and did it twice - still got db errors when inserting a forum with link.

Quote:
Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch,link)
VALUES
(NULL,'2','Who is who','Who is who','1','6','-1',
'','1','1','30','','',
'0','0','1','0','1','1',
'0','1','1','0','http://www.de','linktarget='_blank')
mysql error: You have an error in your SQL syntax near '_blank')' at line 10
mysql error number: 1064
Date: Saturday 14th of July 2001 06:53:29 PM
Script: /forum/admin/forum.php
Now what I wonder while looking at the SQL code is the following:

Line 142ff in forum.php / Line 38 of your info.txt
Code:
  $DB_site->query("INSERT INTO forum  (...)
                     (...)styleoverride,allowratings,countposts,moderateattach,link)
                     VALUES
                     (...)'$styleoverride','$allowratings','$countposts','$moderateattach','".addslashes($link)."','linktarget='$linktarget')");
Every field has a name and a value, but the linktarget.
After moderateattach is link, but no linktarget though there is a value 'linktarget='$linktarget'

Secondly the value 'linktarget='$linktarget' irritates me, I am not into php, but from my perl days IIRC the quoting looks weird.

Thanks for a hint,
-Tom
Reply With Quote
  #14  
Old 07-14-2001, 05:11 PM
ThomasP
Guest
 
Posts: n/a
Default

Okay, it works now (I think)

I edited the SQL Query in forum.php (142ff) and changed it to:

Code:
  $DB_site->query("INSERT INTO forum
                      (forumid,styleid,title,description,active,displayorder,parentid,
                       parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
                       moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
                       styleoverride,allowratings,countposts,moderateattach,link,linktarget)
                   VALUES
                      (NULL,'$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
                       '','$allowposting','$cancontainthreads','$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
                       '$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilies','$aallowicons',
                       '$styleoverride','$allowratings','$countposts','$moderateattach','".addslashes($link)."','$linktarget')");
  $forumid=$DB_site->insert_id();

I added linktarget and changed 'linktarget='$linktarget' to '$linktarget', now it looks okay for me in the db.

Is this correct?
Thanks,
-Tom

P.S. @AS_Eagle_1: How did it work for you
Reply With Quote
  #15  
Old 07-14-2001, 05:17 PM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which version did you use? 1.0, 1.1 or 1.1a?
Reply With Quote
  #16  
Old 07-14-2001, 05:57 PM
ThomasP
Guest
 
Posts: n/a
Default

Hi,
I used extlink11a.zip, especially info.deutsch.txt
-Tom
Reply With Quote
  #17  
Old 07-15-2001, 08:50 AM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, it was simply a bug in the info.deutsch.txt and info.english.txt

I have changed this two files and re-uploaded it but I did not create a new release, I think if someone else has installed the old 1.1a your description will help...
Reply With Quote
  #18  
Old 07-15-2001, 10:13 AM
ThomasP
Guest
 
Posts: n/a
Default

O.k., thanks for the great hack,
works like a treat!
thx,
-Tom
Reply With Quote
  #19  
Old 08-02-2001, 10:24 PM
ThomasP
Guest
 
Posts: n/a
Default

Works in 2.0.3
thx,
-Tom
Reply With Quote
  #20  
Old 11-03-2001, 01:41 AM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...and in 2.2.0
-Tom
Reply With Quote
  #21  
Old 11-14-2001, 06:56 PM
orca's Avatar
orca orca is offline
 
Join Date: Oct 2001
Location: Switzerland
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GameCrash
Okay, it was simply a bug in the info.deutsch.txt and info.english.txt

I have changed this two files and re-uploaded it but I did not create a new release, I think if someone else has installed the old 1.1a your description will help...
Well, I downloaded the file today and the bug reported by ThomasP is still there. After editing, it worked again.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:39 PM.


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.08903 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete