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 the_sisko the_sisko is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-31-2001 Last Update: Never Installs: 38
 
No support by the author.

UPDATE!!! NEW DOWNLOADFILE | 02. April 2001
Release vB Links 1.0

So here it is, the final version of my link hack is available to download.
Here are some features for this version:
  • showing links with the following information: Name, URL, Email, Banner, Banner ALT Text, Description, Forumlink, Hitcounter (outgoing), Categories
  • main page shows all links, but you can: a:sort by category and b:search for a site
  • registrated user can add new links, but admin or mod must confirm the links in the CP
  • an email is sent to you when there is a new link to approve
  • Links can be ordered over pages. Limit for links per page can be set
  • outgoing links will be redirect over a redirect page with information that you're leaving the forum...and outgoing counter will be set plus 1
  • Category is show on each link
  • CP: you can easy add new site on your own or edit a site
  • CP:can add or edit categories
  • CP: Categories can be reordered
  • CP:confirm and edit new sites
  • CP:upload banners to let them load faster
More:
There are about 13 new templates and 2 new tables on the database which will be created over an easy installscript.

How to install?
Just download the attached file and unzip it, then open install.txt and follow the instructions. Need any help or find any bugs, please report them here. And don't hate me for the code, I tried my best!

Future:
As I like my script and need it anyway, there will be a next version of it, with more features. Some of the following features I am working on:
  • New startpage with a overview of all categories and the ability to add subcategories as well
  • automatic post of a new post in a specific. thread when admin / mod approved a link
  • logging user who's add the link (its easy but don't had the time for this version
  • categories and subcategories in Navbar
  • get used of the vB rate feature and try to integrate it
  • code clean up
  • better translation
  • and more...
INstall and upgrade
  • For those of you who will install the script the first time, just download the attached file and read firsttime_install.txt.
  • For those of you who allready updated the templates, just reupload "links.php" and do step 1. and 2. in upgrade_install.txt, and also open CP and add the links_redirect_add & links_redirect_url template which is attached to this message. This will fix all your probs
  • For those fo you who do not change the templates yet, but installed the hack, just do whats in upgrade_install.txt


DOWNLOAD vB Links Hack 1.3

Show Your Support

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

Comments
  #72  
Old 07-06-2001, 07:03 AM
Ed FvC Ed FvC is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great idea, but needs a bit more fine-tuning...not to mention a full translation. Makes me wish I knew German.

Oh, another recommendation... Instead of this:
Code:
<tr><td><hr></td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>Links</b>
</font></td></tr></table>
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=add"> Add</a> | 
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=modify"> Modify</a> | 
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=offline"> Approve </a><br>
<font color="#BCB6CD"><b>Category</b></font><br>
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=addcat"> Add</a> | 
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=modifycat"> Modify</a> | 
<a href="../links/adminlinks.php?s=$session[sessionhash]&action=ordercat"> Arrange</a><br><br>
</td></tr>
Wouldn't this be even cleaner?:
Code:
<tr><td><hr></td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Links"); ?>
</table>
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=offline"> Approve </a><br>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Link Categories"); ?>
</table>
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=addcat"> Add</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=modifycat"> Modify</a> |
<a href="../links/adminlinks.php?s=<?php echo $session[sessionhash]; ?>&action=ordercat"> Arrange</a><br>
</td></tr>
I know it's not a big deal, but whatever.
Reply With Quote
  #73  
Old 07-09-2001, 07:51 PM
willi_007
Guest
 
Posts: n/a
Default

This is a very nice hack !! Gratulation !!

But is time to tell you about my problems, i have install your hack and all parts of the installation looks like OK, but when i follow the Link to the Link-Page i get these Errors:

Warning: Undefined index: HTTP_POST_VARS in c:\apache\htdocs\vbulletin\global.php on line 58

Warning: Undefined index: action in c:\apache\htdocs\vbulletin\global.php on line 58

Warning: Undefined index: action in c:\apache\htdocs\vbulletin\global.php on line 61

the rest of the Site looks OK !!

Have you a Solution !!! Please help me quickly

THX
Reply With Quote
  #74  
Old 07-29-2001, 11:22 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed VB links all worked fine, but know if I click on a link within vb links it does not take me to the site in question but in fact back to the main page of vb links.

Whats going on and can anyone help?
Reply With Quote
  #75  
Old 08-01-2001, 08:53 AM
veedee veedee is offline
 
Join Date: Oct 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed it and it works really well

http://www.visordown.com/forums/links


2 things I would like to know

can we have a drop down box that can sort the links out ALPHABETICALLY ie A--------->Z

can we have it so then email adress submitted, recieves an automatic email something like:

Quote:
your website $linkedwebsite has been added to $mysite please can you link back etc


Any feedback would be great
Reply With Quote
  #76  
Old 08-01-2001, 09:39 AM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay it seems the upgrade to vB 2.0.2 and 2.0.3 wiped out some of this hacks templates which were added

I now only see 3 custom templates for this hack remaining

links
linksbits
links_add
links_counter

the following templates have been wiped by the upgrade and can not be found hence the redirect to the front page when i click one of the banner links

linkspages
links_category
links_emailsub_newsite
links_email_newsite
links_redirect_add
links_forumlink
links_redirect_url
links_upload
links_upload_done
Reply With Quote
  #77  
Old 08-01-2001, 11:47 AM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eva2000,

Each time you upgrade your forum software, you need to re-install the links installation script and run the script all over again. I've had to do this each time I upgraded my forums and just did it last night. Good luck.
Reply With Quote
  #78  
Old 08-01-2001, 11:58 AM
EXCHANGE's Avatar
EXCHANGE EXCHANGE is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can´t agree with that. I´m running this hack since beta 5 now without any reinstall
Reply With Quote
  #79  
Old 08-01-2001, 06:02 PM
Delhaze Delhaze is offline
 
Join Date: Oct 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed the templates and made them "Custom Templates".
Now when I upgrade VB there is no need to redo everything, apart from the admin part.

I've also made a few other changes that make it more in keeping with the feel of VB itself.

The category select auto jumps, and remembers where you have jumped to. (code taked from VB itself)

Also made the buttons the default "Go" ones from VB.

Added a "New Link" button

Changed the tables to look more VB like.

You can have a look at http://www.ckcsforums.com/links.php

If any of you want the changes needed for the Auto Jump/Remember here it is:

about line 81 find:

PHP Code:
//################### Kategorien < ################### 
$links_categorys $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");
    
while (
$link_category $DB_site->fetch_array($links_categorys))
    {

        
    eval(
"\$links_category .= \"".gettemplate("links_category")."\";");
    } 
replace with:

PHP Code:
//################### Kategorien < ################### 
$links_categorys $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");
    
while (
$link_category $DB_site->fetch_array($links_categorys))
    {
     if (
$link_category[id]==$category) {
        
$optionselected='selected';
    } else {
        
$optionselected='';
    }    
    eval(
"\$links_category .= \"".gettemplate("links_category")."\";");
    } 
change the "links_category" template to:

Code:
<option value="$link_category[id]" $optionselected>$link_category[name]</option>
change the following in the "links template"

Code:
<select name="category">
to:

Code:
<select name="category" onchange="window.location=('links.php?funktion=bereich&category='+this.options[this.selectedIndex].value)">
enjoy!
Reply With Quote
  #80  
Old 08-01-2001, 06:24 PM
SteveK SteveK is offline
 
Join Date: Oct 2001
Location: Seattle, WA USA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice changes Delhaze.

Has anyone thought about adding the ability to run the categories through the forum permissions settings so certain categories could be private?
Reply With Quote
  #81  
Old 08-01-2001, 09:56 PM
veedee veedee is offline
 
Join Date: Oct 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still would love to see:
  • auto email to webmaster of new site
  • newest link to be featured at the top
  • maybe a CP add on where admin can add suitable images for link back and it creates auto URL and alt text

need to get good at PHP !
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 04:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05266 seconds
  • Memory Usage 2,329KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (4)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
  • (10)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