The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Links and Files Database Details »» | |||||||||||||||||||||||||
The VB3.0 version is no longer supported although there have been no reported problems for some time
See here for the VB 3.6 version of this hack, which is now the supported version. This version currently also works with VB 3.5 See here for the VB 3.5 thread for this hack. What's new in v1.60? Option to display associated thumbnail images Option to accept/not accept new entries if these already exists in database Code for mass edits (accessed via admincp) tidied up VB phrasing completed Includes a full French and a partial German translation (thanks to cclaerhout, Allan and LeeWicKeD), handled properly by installation script. Various bugs fixed and tested against php4 and php5: Better database validation (on startup/in admincp: links with invalid associated forumids, categories with invalid parentids) Alternative linkbit templates provided (default uses a fieldset, the other is the old-style table row) Alternative category selection templates (pull down menu/list of checkboxes), Star rating displayed using standard VB stars rather than in text form Series of minor bug fixes See file change.txt in zip file What it is/does - Provides a searchable database of weblinks and/or downloadable files, for example manuals, music files, pictures, etc. - Integrates within VBulletin, without requiring any code changes. - Transparently handles links and file downloads. (If you want to provide downloads from your own site, you need a separate tool to upload these files. This hack does not and will not include a file uploader.) - Provides unlimited nested categories. - Each link/file can be a member of multiple categories. - Link and category title and descriptions can use all BBCODEs, giving the possibility to add images, colouring, etc, as you wish - Viewing/access permissions controlled using VBulletin forum system - Users can rate links, in a similar manner to VB thread rating. - File downloads are semi-leechproof, i.e. the user does not see where the file is stored and can only access the link if she has access to the associated forum. - Audio files playable via Windows Media Player can be offered as a jukebox . - Tracks who downloads what - Validates links on entry/editing, and provides admin facility to validate the entire database. Installation/upgrading instructions Read instructions.txt in the zip file. Installation script works out whether to install or upgrade. To upgrade from an earlier release of this hack, simply re-run the installation script. If you modified the templates in the top styles, you will lose these modifications unless you back up and re-edit. PLEASE BACK UP YOUR DATABASE See also For screen shots, see attachments. Tested with VBulletin 3.0 and higher PHP 4.1.1 and 4.3.4, should work with all 4.x versions, seems ok with 5.0.4 MySQL 4.0. Reported ok with MySQL 4.1 but not exhaustively tested Credits Initially inspired by drkFusion's vb2 hack "vb Link Directory" v.2 and discussion about v.3 on Vbulletin.org. This is a complete rewrite with many more features. Every credit to the VBulletin folks for providing the infrastructure and to those on vbulletin.org who have helped with testing. Integrations/Conversions Natch has written extensions to integrate this hack with VBindex and VBAdvanced. For convenience, this hack includes fully integrates with, but does not install, his VBIndex hack - i.e. the required template and code are provided, and the admin panel handles the configuration settings. Please refer to his thread for instructions. Integration with VBadvanced is described in thread 1319 at vbadvanced.com. The zip file includes a script and instructions for converting from vbLinks v2 (see thread 44551 Show Your Support
|
Comments |
#832
|
|||
|
|||
Quote:
|
#833
|
|||
|
|||
Oh wow! I love this hack! THANK YOU SO MUCH!
|
#834
|
|||
|
|||
I had a table full of categorized link items already and wanted to migrate it into Links 1.51 so that it could become the foundation of my collection. It was a duplicated system up to this point where people would use a forum for URL discussion and I was manually updating a table with phpmyadmin. Anyway, this solution fixes all that.
So I wrote my own php script to import the stuff and I figured I'd share it here in case anyone else has to do something similar.
I then had trouble with apostrophes from words like can't, so I had to use the addslashes() function on the titles and descriptions I was importing. But it worked, and very well. I was able to populate Links with about 400 links, all into the right categories. Here's the ugly amateurish php script with some extra echo commands I used for testing. You can omit those: Code:
<?php $link_id = mysql_connect("localhost", "username", "password"); $result=mysql_list_dbs($link_id); mysql_select_db("dbase_name", $link_id); $result=mysql_query("SELECT * FROM tbl_news where newsType in ('Media', 'Research', 'Opinion', 'Inspiration') order by newsID desc", $link_id); if($result) { $idx_count=0; while($query_data=mysql_fetch_row($result)){ $idx_count++; echo "IDX = $idx_count<br>"; if ($query_data[2]=="Media") $catid=1; if ($query_data[2]=="Research") $catid=3; if ($query_data[2]=="Opinion") $catid=4; if ($query_data[2]=="Inspiration") $catid=5; echo "$query_data[2] catid=$catid<br>"; $result2=mysql_query("INSERT local_linksltoc SET ltoc='', linkid='$idx_count', catid='$catid', displayorder='$idx_count'", $link_id); echo "$idx_count, $catid, $idx_count<br>"; $query_data[3]=addslashes($query_data[3]); $query_data[4]=addslashes($query_data[4]); $result3=mysql_query("INSERT local_linkslink SET linkid='$idx_count', linkname='$query_data[3]', // newsTitle field linkdesc='$query_data[4]', // newsBody field linkurl='$query_data[5]', // newsURL field linkhits='0', linkforum='-999', linkcheck='1108148258', // whatever is "now" linkstatus='1', linkdate='1108148258', // whatever is "now" linkusername='username', linkuserid='1', // my userid linkmoderate='0', linkmoddate='0', linkreviewfreq='0'", $link_id); if ($result3==1) echo "$idx_count, $query_data[3], $query_data[4], $query_data[5]<br><hr><br>"; else echo "<h1>$idx_count - $query_data[3] - ERROR</h1>"; } } mysql_close($link_id); ?> Attached are FROM (the original news/links database) and TO (Links 1.51) screen caps. |
#835
|
|||
|
|||
I noted earlier that mass move of links to a different category or mass change of permissions would be very welcome, is there any hope of seeing this in the future?
|
#836
|
|||
|
|||
Quote:
|
#837
|
|||
|
|||
I have a simple question
How can I remove the image on the section place. For example on a HD links database I run: http://www.juicyduff.com/forum/local...=links&catid=2 The avatar at the top messes things up and I don't want it to be there, how would I make it NOT display there? "Avatars [img(removethis)]http://www.juicyduff.com/dloadz/avatars/wellysm/2.gif[/img(removethis)]" - Also, that displays on the title at the top near forum navigation ... I want that removed too. BTW - AWESOME HACK! |
#838
|
|||
|
|||
Quote:
Put your image tag into the category description (if you want it to appear in the category listings) or into the extended description (if you want it to show up only in the category itself). Don't put it into the category name. |
#839
|
|||
|
|||
Hi Andrew,
Perhaps I was too vague and should make myself more clear: Sorry, but the 2 solutions failed to solve the problem: Bascically, I want the avatar to remain where it is on the front page but its image NOT be displayed how it is in the link above but to remain where it is. Here is the main page: http://www.juicyduff.com/forum/local_links.php You can see that the "wallpapers" images is moved, basically I only want the thumbnails to be on the left handside (category) and no where else. Thanks, your help is appreciated... |
#840
|
|||
|
|||
Quote:
As you observe, if you put an image tag (or any other tag) into the category name, then the tag also shows up in the navigation bar as text. (I'll see if I can check for that condition and remove it, but I need to be careful that I don't kill anything else in the process.) What you could do (easier if you are the only person creating categories on your board) is use the description or its extended description purely to hold the bbcode image tage, and modify the template accordingly. For example. you could use the description to hold only the image tag and put the accompanying text into the extended description. So, you might edit these lines in the links_main template: Code:
<tr align="center"> <td class="tcat" align="center"><strong>$viewcatname</strong> <if condition="$catclosed != 0"><span class="smallfont">[closed]</span></if> </td> </tr><tr> <td class="alt1"><span class="smallfont">$viewcattext</span></td> </tr></tbody> You would also have to make a similar change in the links_catbit template, where the three variables are $catname, $catdesc amd $cattext. Code:
<tr valign="top"> <td class="alt$catstyle"> <span class="smallfont"> <if condition="$catnew"> <b> </if> <a href="local_links.php?action=links&catid=$catid">$catname</a> <if condition="$catnew"> </b> </if> </span> </td> <td class="alt$catstyle"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr><td width="75%"> <span class="smallfont"> <if condition="$catnew"> <b> </if> $catdesc <if condition="$catnew"> </b> (new entry $catdate) </if> <if condition="$links_permissions[can_edit_category]"> <a href="local_links.php?action=editcat&catid=$catid">[edit]</a> </if> <if condition="$subcatnames"><br /><strong>Sub-categories:</strong> $subcatnames</if> </span> </td> <td class="alt$catstyle" width="25%" align="right"> <span class="smallfont"> <if condition="$links_defaults[count_depth]==0"> [$catsub categ/$catentry entries] <else /> [$catchildentry entries] </if> </span> </td> </tr> </table> </td> </tr> |
#841
|
|||
|
|||
Unfortunately that didn't work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|