![]() |
Quote:
|
Quote:
Code:
// #################### Add Entry Code:
$linkurl = "http://"; Code:
$linkurl = ""; Code:
<input type="text" class="bginput" name="linkurl" value="$linkurl" size="50" /> |
Andrew,
Thank you very much. |
I installed this on my forums. And simply amazing.
good job andrewD and i don't feel like reading this whole 70page post so is there any useful information in it for some modifications to this for like a Drop down box(like the QuickLinks) and then be able to select Add Lnk, View Links And things like that |
Quote:
I don't think I've answered that question before ;) What features would you like to see on a QuickLinks drop down? No promises... |
It's very easy to make the Drop down box like vb3 default's Quick Links if you know a little bit HTML. Open navbar template and navbar_link template and read them. You should be able to figure it out how to make drop down links. Good luck!
|
Supported release is now 1.60b (see first post in this thread for details).
Andrew |
Installed .. :)
Can't see anything wrong at the moment AndrewD .. nice job! .. :) |
Quote:
It was to add in this version AndrewD ? |
Quote:
The links home page now has a banner heading with a clickable line "N new entries since last visit". The pull down menu item "Show What's New" will show these entries provided the parameter *days_seen_on_portal* is set to 0. |
I have to throw the update and he says to me :
Code:
Upgrade vb Links to Links and Files 1.60 |
Quote:
All you need to do to upgrade this hack is re-run the normal installation script, local_links_install.php. It works out what to do. |
<font face="Courier New">
This extension allows registered users to rate and comment on entries. The extension was built around version 1.60b of AndrewD's L&F DB hack. This is a "Thanks to Andrew" extension, but support is not guaranteed. Make backups of your files, tables, templates, etc. before installing. Of course, you assume the full risk should you install this extension. </font> |
Nice addon!!! Thanks...
|
You're welcome. DL the instructions again though, as I forgot a template in the instructions. If anyone DLs after this point, the template has been added to the instructions. Also before anyone asks, if you want to show more than one comment per entry, just change the $comment_cutpoint = 1; variable in the new get_linksratings function. Of course, you need to allow rating for the extension to work.
Quote:
|
<font face="Courier New">
These edits basically change the search so that LIKE queries are used instead of MATCH AGAINST queries. Note that LIKE queries may be slower than MATCH AGAINST queries, so only apply these changes if wanted. However, you may find that you get more meaningful results using LIKE queries instead of MATCH AGAINST. </font> |
Quote:
Early versions of this hack used LIKE (which is also used by the release version of VBulletin). This allows you to find a search string, with an optional wildcard or so. Boolean fulltext also allows you to look for combinations of words, strings, etc, so that if you search for (e.g.) +book -page, you will find entries with the word book but not page. |
True, but if you use MATCH AGAINST then you may be at the "mercy" of MySQL's minimum word length, stop words, fifty percent threshold, definition of word, special characters. For anyone interested, visit here. It's a matter of preference, so "only apply these changes if wanted." ;)
Quote:
|
@AndrewD
excuse my bad english ... I use your hack..and it is very fine ! Thank you for the hack. Bur I only need the downloads ...not the links. Can you in the future make a hack only for downloads ? I doesn't know about a good download hack...so I use your hack for my downloads.... but many of the queries and menus and tables are not necessary .. greetings from germany .. |
<font face="Courier New">
These are my notes on how to install AndrewD's LFDB in a directory outside the main forum directory. I cannot guarantee completeness, accuracy, or support, but I give these instructions to you should you wish to install AndrewD's LFDB outside of your forum directory. The main thing with doing this is that you really need to take care about paths and links. Chances are good that if you have a problem, then there is a path or link that needs to be changed to something else. This is a tedious process, be sure, but once done you can call http://www.your-domain.com/links/index.php and get a warm and fuzzy feeling. </font> |
You are doing an amazing job :D
(still I must do my job and report a forgotten non-phrased word - in linkbit new links are marked with "*New*" instead of something like "*$vbphrase[ll_new]*" ;) Thanks for all your work so far :) |
Quote:
|
Quote:
|
Quote:
|
I want a smaller programm ... ;)
a very small and simple file database ..., ( in the future ) there are a lot of things which i don't understand ...import, export, Scan site for new files, ...all the things for the LINKS feature .... sorry for the wish ...like this ?? but I know you can do this .. ;) may be in the future. |
Quote:
The points you mention though - import, export, scan - make life easier for the admin. Import and export provide a simple text file format for backing up and re-installing your links/downloads. Scan provides an easy way to pre-load your database with your downloads - you can upload a whole set into one of your website directories, then use the scan feature to read these all into the database at once. |
is there "Top Rated" from all the rated links option?
|
Quote:
|
Sorry, but I don't guarantee support for any of my mods. Perhaps this may make some people unhappy, but I have time constraints. There are other ideas that I have about the comments extension. Maybe I should start a thread in the Add-On forum, or maybe you are planning on integrating some of the things I posted? Anyway, you might want to make the following changes to your LFDB system. The first change prevents a search on "<h1>foobar</h1>" from interpreting the HTML, and the second change encodes the partial URL though it looks like it doesn't get used.
Code:
//=================================================================================================================== Quote:
|
Quote:
Actually, I'm quite happy to integrate some of these ideas into the main code - this is has been happening all along for this hack. |
True, but I doubt I could find adequate time to provide consistent support, so I don't guarantee it. Anyway, what ideas would you integrate? I like the comments extension, but I'm thinking it might need a new layout, perhaps a while loop to template each comment, pagination on the view all list, maybe a link to comment instead of the comment box, blah blah. None too hard, just some of that time... ;)
Quote:
|
Quote:
Looking forward to it if it happens, but saying that I'm very happy with the hack as it is .. :) |
<font face="Courier New">
While I cannot guarantee completeness, accuracy, or support, here are some LFDB hack suggestions. The input is checked (intval, addslashes, etcetera) but there are spots that do not set default values or check permissions should someone save the HTML, mess with the HTML, and then submit changes to the script, or should someone alter or create a query string and submit changes that way. For example, a user who does not have permission to add a link could set $action to doaddlink and add a link even though, when $action is set to addlink, the user is told to bugger off. Another example is when $action is set to dosendtofriend. Pass the appropriate variables and send email even though, when $action is set to sendtofriend, permissions are checked. Suggestions, FWIW. </font> |
In local_links.php find: Code:
if ($_REQUEST['action'] == "doeditlink") { Code:
foreach ($pcatid as $p) { Code:
foreach ($pcatid as $p) { |
Calorie - I'm very happy to have these suggestions, particularly to improve stability, etc. But it would probably be easier for others and for me if you simply PM me or email me with your comments rather than overloading this thread.
Thanks and OK? |
As I couldn´t find a ´m trying to set this up as a store directory where users can submit their articles and services, which they can trade with the ushop money OR with the money from a partner assossiation.
It seems to be very easy, but i just have the following questions: Is it possible that a user can edit only his own links and not those submitted by others? Is there a way to tell in the template the instruction that: if the category is not one of the following (1,4,6,7,9), bypass this and that. (i need such a conditional for having the rating feature only for selected categories, or f.ex. remove the "new link textfield box", etc.) Or maybe there´s a better way for doing this? I don´t know. I´d be very happy if someone can help me. |
Quote:
Quote:
|
Thanks, Andrew!
I´m going on with the following condition in order to choose the available features per category: <if condition="$viewcatid == X">action here...</if> I´m currently trying to figure out how to create an attitional userfield in order to fetch the value into a template, but it´s not so easy. :hurt: |
I just altered the links_linkbit a little bit. If anyone likes it, here?s the code:
HTML Code:
<tr> <td class="alt$linkstyle" colspan="2"> <fieldset class="fieldset" style="margin: 0px 0px 0px 0px;"> <legend style="background: white; border: 2px;"> </legend> <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr> <if condition="$linkimg"> <td width="$linkimgsize"> <if condition="$linkurl"><a <if condition="$linkmode<2">href="local_links.php?action=jump&id=$linkid"<else />href="$linkurl"</if> target="_blank"></if> <img src="local_resize.php?pic=$linkimg&size=$linkimgsize" border="0" alt="" /><if condition="$linkurl"></a></if> </td> <td width="2"> </td> </if> <td valign="bottom"> <fieldset class="fieldset" style="margin: 5px 0px 5px 10px;"> <legend><strong> <if condition="$linkurl">$linktypebit <a <if condition="$linkmode<2">href="local_links.php?action=jump&id=$linkid"<else />href="$linkurl"</if> target="_blank"></if>$linkname<if condition="$linkurl"></a></if> <if condition="$linknew">$vbphrase[ll_new]</if> </strong> <if condition="$links_permissions[can_mark_link]"> <if condition="$linkfav"> <if condition="$viewcatid!=-2"> <span class="highlight">$vbphrase[ll_myfav]</span></if> [<a href="local_links.php?action=dofavlink&id=$linkid&set=-1&catid=$viewcatid&page=$pagenumber" title="$vbphrase[ll_myfav_del]">$vbphrase[ll_ab_favminus]</a>] <else /> [<a href="local_links.php?action=dofavlink&id=$linkid&set=1&catid=$viewcatid&page=$pagenumber" title="$vbphrase[ll_myfav_add]">$vbphrase[ll_ab_favplus]</a>] </if> <if condition="$links_permissions[can_send_tofriend]"> [<a href="local_links.php?action=sendtofriend&id=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]">$vbphrase[ll_ab_send]</a>] </if> </if> <if condition="$viewcatid == 4"><span align = "right" style="color : green; align : right; text-decoration : underline;">==OFFRE==</span></if> </legend> <BR /> <span class="smallfont"> $linkdesc <if condition="$linkshowothercatbit>0"><br /><br />$vbphrase[ll_seealso] $linkothercatsbit</if> </span> </td> <td width="25%" align="right" valign="bottom"> <fieldset class="fieldset" style="margin: 5px 5px 5px 5px;"> $linkratebit <span class="smallfont"> $linkdate <if condition="$linkstatus>1"> [$linkstatus $vbphrase[ll_kb]]</if> <if condition="$linkstatus==0"> [$vbphrase[ll_unknown_status]]</if> <if condition="$links_permissions[can_view_hits]"> <br />$vbphrase[ll_submitby] <a href="member.php?u=$linkuserid">$linkusername</a> <br />$vbphrase[ll_hits] $linkhits </if> <if condition="$links_permissions[can_rate_link]"> <br />$vbphrase[ll_rate] <a href="local_links.php?action=doratelink&vote=1&id=$linkid&catid=$viewcatid&page=$pagenumber">1</a>/ <a href="local_links.php?action=doratelink&vote=2&id=$linkid&catid=$viewcatid&page=$pagenumber">2</a>/ <a href="local_links.php?action=doratelink&vote=3&id=$linkid&catid=$viewcatid&page=$pagenumber">3</a>/ <a href="local_links.php?action=doratelink&vote=4&id=$linkid&catid=$viewcatid&page=$pagenumber">4</a>/ <a href="local_links.php?action=doratelink&vote=5&id=$linkid&catid=$viewcatid&page=$pagenumber">5</a> * </if> <if condition="$links_permissions[can_moderate_links] and $linkstatus==$LINK_HIDDEN"> <br /> [$vbphrase[ll_hidden]] </if> <if condition="$links_permissions[can_edit_link] or $bbuserinfo[userid] == $linkuserid"> <br /> <a href="local_links.php?action=editlink&linkid=$linkid&catid=$viewcatid&page=$pagenumber" title="$vbphrase[ll_edit]">$vbphrase[ll_editlc]</a> </if> </span> </td> </fieldset> </fieldset> </tr> </table> </fieldset> </td> </tr> |
When i save the settings i run into the following error. It saves things correctly, but what is it that´s causing this?
Warning: implode(): Bad arguments. in /local_links_admin.php on line 730 Warning: implode(): Bad arguments. in /local_links_admin.php on line 837 |
All times are GMT. The time now is 04: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|