View Full Version : Links and Files Database
boeserwolf
04-17-2005, 11:56 AM
Big thnaks for this hack. I was looking for a good database hack, and here it is.
Klick install
And the best thing: As I live in Austria and my native language is german, I do not have to translate it.
yours
Markus
AndrewD
04-17-2005, 12:22 PM
have to you it an installation in French, or there is just the phrase (xml)?
Desole, il y'a seulement les phrases. Mais je pense que vous trouverez qu' l'installation sera tres facile.
AndrewD
04-17-2005, 12:24 PM
Thanks for the new Version.... :banana:
I will tested it on php5.
( excuse my bad english )
Comes there a version included upload-function in the future ?
Bernd
I don't plan to include an uploader - there are plenty of other utilities for doing this, and there are lots of parameter settings on different web sites that I can't test very easily.
skokarl
04-17-2005, 12:27 PM
I don't plan to include an uploader
it's okay.
Allan
04-17-2005, 12:35 PM
Desole, il y'a seulement les phrases. Mais je pense que vous trouverez qu' l'installation sera tres facile.
pas de probl?me, merci a vous :)
quand aller vous mettre la version 1.60 officiellement ?
Lizard King
04-17-2005, 12:36 PM
Andrew 1.60 is working perfectly. Thanks for considering every request you did a perfect job again.
AndrewD
04-17-2005, 12:42 PM
pas de probl?me, merci a vous :)
quand aller vous mettre la version 1.60 officiellement ?
En environ deux semaines, ? moins que je trouverai des probl?mes.
Allan
04-17-2005, 12:54 PM
ok, je vais installer la version 1.55b alors, et mettrai a jour vers la 1.60 dans 2 semaines alors, merci pour ce superbe hack AndrewD ;)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Clique Install
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:)
skokarl
04-17-2005, 02:42 PM
NO problems with 1.60 and PHP 5 during the install.
no bugs found in the short time.
Slave
04-18-2005, 11:24 AM
Installed and working perfectly from what I can see AndrewD
\o/
:)
VampireMan
04-18-2005, 02:08 PM
another suggestion ;)
I didnt see the 1.60 upload as i havent checked back here in a few days , will update mine later.
Anyway - over the past week or so , i have someone abusing the vote system. Perhaps we can have an 1 vote per link/upload per ip , or cookie. That way it will be abused less & might be possible for me to track down the guilty party ;)
AndrewD
04-18-2005, 02:14 PM
another suggestion ;)
I didnt see the 1.60 upload as i havent checked back here in a few days , will update mine later.
Anyway - over the past week or so , i have someone abusing the vote system. Perhaps we can have an 1 vote per link/upload per ip , or cookie. That way it will be abused less & might be possible for me to track down the guilty party ;)
Hi, I'll check the code regarding the voting system - as I recall it only counts the most recent vote per userid and only users in groups with *can_rate_link* should be able to vote. It doesn't track IP addresses at present. Are you allowing unregistered users to vote?
*Edited after checking code* - Indeed, the code stores the most recent vote by given user. This will cause problems if you allow unregistered users to rate links, because each such user will over-write the last one.
SEO Report
04-18-2005, 02:53 PM
Is there a way to use standard links instead of :
http://www.domain.com/local_links.php?action=links&catid=XXX
It's easy to use mod_rewrite & htaccess to change URLs to something like this:
http://www.domain.com/link-XXX.html
However I'm having trouble changing local_links.php to use the later format.
For SEO purpose, I prefer to use standard links as it has a much better chance to get indexed by Google.
AndrewD
04-18-2005, 03:39 PM
Is there a way to use standard links instead of :
http://www.domain.com/local_links.php?action=links&catid=XXX
It's easy to use mod_rewrite & htaccess to change URLs to something like this:
http://www.domain.com/link-XXX.html
However I'm having trouble changing local_links.php to use the later format.
For SEO purpose, I prefer to use standard links as it has a much better chance to get indexed by Google.
I've not used mod_rewrite, so I'm not too sure what you want.
Are you asking for the hack to display category jump urls of the form link-NNN.htm, which your site's Apache will catch and turn back into local_links.php?catid=XXX
If this is what you want, you can achieve this by editing the links_catbit template
Otherwise, I don't understand.
VampireMan
04-18-2005, 11:00 PM
i did allow guest's to vote , but ive turned that off now :/
RichieBoy67
04-18-2005, 11:33 PM
The Beta works perfectly!! Thanks for all the work that went into this Andrew and for supporting it too. Sweet Hack!!
Rich
Allan
04-19-2005, 03:11 PM
Bonjour AndrewD, je te propose de traduire compl?tement le fichier langue (xml) francais pour ta version 1.60, cela t'int?resse t-il ?
je dis cela car il rest pas mal de chose a traduire, et j'avous que ton hack est superbe, par sa simplicit? et sa structure vraiment int?ressante, voila, n'h?site pas :)
Tradjick
04-19-2005, 04:16 PM
Salut,
I got the following notice in the firewall when posting a link:
Application Hijacking has been detected
The application: D:\Program Files\Apache Group\Apache2\bin\Apache.exe try to launch another application: D:\Program Files\Apache Group\Apache2\bin\Apache.exe to go to remote host www.rtl.lu
Is that something i should be worried about?
AndrewD
04-19-2005, 04:55 PM
Salut,
I got the following notice in the firewall when posting a link:
Application Hijacking has been detected
The application: D:\Program Files\Apache Group\Apache2\bin\Apache.exe try to launch another application: D:\Program Files\Apache Group\Apache2\bin\Apache.exe to go to remote host www.rtl.lu
Is that something i should be worried about?
From what I see on Google, this is a common message from the Sygate Personal Firewall. Are you running this on your PC? I don't know how you configure Sygate or if it's a sign of something else on your PC.
AndrewD
04-19-2005, 04:56 PM
Bonjour AndrewD, je te propose de traduire compl?tement le fichier langue (xml) francais pour ta version 1.60, cela t'int?resse t-il ?
je dis cela car il rest pas mal de chose a traduire, et j'avous que ton hack est superbe, par sa simplicit? et sa structure vraiment int?ressante, voila, n'h?site pas :)
Je serais tres content si tu le fais. Merci beaucoup.
SEO Report
04-19-2005, 05:56 PM
Are you asking for the hack to display category jump urls of the form link-NNN.htm, which your site's Apache will catch and turn back into local_links.php?catid=XXX
If this is what you want, you can achieve this by editing the links_catbit template
Exactement AndrewD. Je veux replacer les URL dynamiques par des liens standard.
Je viens de revoir links_catbit, si je comprend bien, si je change cette template, le hack ne va plus utiliser d'URL dynamiques (au moins googlebot ne les verra pas)? mais alors, est-ce que je devrait pas mettre a jour le fichier local_links.php? ce fichier contient des lien du genre <a href="local_links.php?BLABLA">
Cordiallement,
-k
Marco van Herwaarden
04-19-2005, 07:43 PM
This is an international board. Please keep the public conversations in English so all members can understand.
Thank you.
Allan
04-19-2005, 08:12 PM
Je serais tres content si tu le fais. Merci beaucoup.
no prob ;)
This is an international board. Please keep the public conversations in English so all members can understand.
Thank you.
yes, I understands your reasons and respect them :)
SEO Report
04-20-2005, 01:01 AM
My appologies.
Basically, here is what I said (warning, very poor translation!):
Exactly AndrewD. I want to replace dynamic URLs with standard ones.
Regarding the template links_catbit, what about the dynamic URLs found in local_links.php ? should I replace them too?
-k
Marco van Herwaarden
04-20-2005, 03:38 AM
Thank you for providing the translation. And don't worry, it is very understandable.
Slave
04-20-2005, 07:44 AM
A quick suggestion ..
When adding a link .. is it also possible to have the option of creating a new category at the same time for the new link to go into ..
So we'd need an entry box for the new category name and a dropdown to pick which category will be the parent of the new category .. :)
AndrewD
04-20-2005, 04:54 PM
My appologies.
Basically, here is what I said (warning, very poor translation!):
Exactly AndrewD. I want to replace dynamic URLs with standard ones.
Regarding the template links_catbit, what about the dynamic URLs found in local_links.php ? should I replace them too?
-k
As I said, I don't understand the voodoo of mod_rewrite, but I've tried a simple test.
If you use this rewrite rule in Apache:
RewriteEngine on
RewriteRule ^/viewcat(\d+).html$ /local_links.php?catid=$1
and you edit the links_catbit template to have the line
<a href="viewcat$catid.html">$catname</a>
instead of
<a href="local_links.php?action=links&catid=$catid">$catname</a>
then your category display will show up with category links of the form viewcatN.html and Apache will redirect them at the correct category.
Please don't ask me to go any deeper into this - find someone who knows what they are doing! ;)
Allan
04-20-2005, 08:09 PM
French Language of the .xml file for the version 1.60, work perfectly with vB 3.0.7 ;)
AndrewD
04-21-2005, 04:19 AM
French Language of the .xml file for the version 1.60, work perfectly with vB 3.0.7 ;)
That's great, Allan, thanks very much.
I'll include it with the main release in a few days - so far only tiny bugs found in 1.60.
skokarl
04-23-2005, 02:57 PM
Hallo,
how can i disabled the menu for
show
new download , my downloads .......etc
thanks.
AndrewD
04-23-2005, 03:23 PM
Hallo,
how can i disabled the menu for
show
new download , my downloads .......etc
thanks.
Edit local_links_templates.xml
Find the lines
<if condition="$links_permissions[can_mark_link]">
<tr><td class="vbmenu_option">
<a href="local_links.php?$session[sessionurl]action=links&catid=$FAVS_CAT">$vbphrase[ll_menu_showfav]</a>
</td></tr>
</if>
<tr><td class="vbmenu_option">
<a href="local_links.php?action=links&catid=$HOT_CAT">$vbphrase[ll_menu_showhot]</a>
</td></tr>
<tr><td class="vbmenu_option">
<a href="local_links.php?action=links&catid=$NEW_CAT">$vbphrase[ll_menu_shownew]</a>
</td></tr>
<tr><td class="vbmenu_option">
<a href="local_links.php?action=links&catid=$MY_CAT">$vbphrase[ll_menu_showmyl]</a>
</td></tr>
<tr><td class="vbmenu_option">
<a href="local_links.php?action=links&catid=$RND_CAT">$vbphrase[ll_menu_showrnd]</a>
</td></tr>
and delete them.
Upload the modified version of this file and re-run the installation script
skokarl
04-24-2005, 08:45 AM
thanks,
but I means the completly show menu..
I need your hack only for downloads,
and so the show menu with the different features is not necessary.
( damaged, random, hidden, etc )
AndrewD
04-24-2005, 10:24 AM
thanks,
but I means the completly show menu..
I need your hack only for downloads,
and so the show menu with the different features is not necessary.
( damaged, random, hidden, etc )
Find and delete the line that reads
<td id="userlinks" width="12%" class="vbmenu_control">$vbphrase[ll_menu_show] <script type="text/javascript"> vbmenu_register("userlinks"); </script></td>
AndrewD
04-27-2005, 02:03 PM
This error is generated if you are protecting links with a forum that doesn't exist. Have you just deleted one of your forums?
You can 'mass edit' the forums associated with your links (at least with version 1.60) by going to the admin page/categories then go down the page to access permissions.
If this is not the problem, let me know
Allan
04-28-2005, 11:42 AM
It would be possible to find craftiness which would allow to warn the members that there is again links of create, because if persons do not go to sections, nobody sees that of new links exist ??
Lizard King
04-28-2005, 02:57 PM
This error is generated if you are protecting links with a forum that doesn't exist. Have you just deleted one of your forums?
You can 'mass edit' the forums associated with your links (at least with version 1.60) by going to the admin page/categories then go down the page to access permissions.
If this is not the problem, let me know
Yep after the post I figured out the same thing :)
AndrewD
04-28-2005, 04:09 PM
It would be possible to find craftiness which would allow to warn the members that there is again links of create, because if persons do not go to sections, nobody sees that of new links exist ??
This is a good idea. I will make a couple of changes in 1.60b (coming this weekend) to show the new links:
- The home category display will indicate the number of new entries since the last visit, with a clickable link to display them all
- The "Show What's New" will do the same thing if *days_seen_on_portal* is set to zero.
I hope this what you want.
sherykah
04-28-2005, 04:19 PM
hello Andrew,
I've installed your this code onto my board and i like it very much. I would like to use it in a second version to collect information in a directory format. Your program is very simple to use and I want to know if a can use it again with one code change. I need to turn off the link verifcation system. I want a member to add information on a performance location that maynot have a web address. I will need to turn off the need to add a url and the verifcation of a url being added to every entry. Is this possible?
Allan
04-28-2005, 04:20 PM
This is a good idea. I will make a couple of changes in 1.60b (coming this weekend) to show the new links:
- The home category display will indicate the number of new entries since the last visit, with a clickable link to display them all
- The "Show What's New" will do the same thing if *days_seen_on_portal* is set to zero.
I hope this what you want.
ok, but a update is possible to 1.60 from 1.60 b ?
AndrewD
04-28-2005, 05:03 PM
ok, but a update is possible to 1.60 from 1.60 b ?
It will be trivial, if fact even easier than that :)
Allan
04-28-2005, 05:04 PM
It will be trivial, if fact even easier than that :)
yesssssssss, thanks AndrewD :)
AndrewD
04-28-2005, 05:14 PM
hello Andrew,
I've installed your this code onto my board and i like it very much. I would like to use it in a second version to collect information in a directory format. Your program is very simple to use and I want to know if a can use it again with one code change. I need to turn off the link verifcation system. I want a member to add information on a performance location that maynot have a web address. I will need to turn off the need to add a url and the verifcation of a url being added to every entry. Is this possible?
This is already coded - if you go to the admin page and set allow_null_links to 1, then the url field can be left empty. You may want to change some of the phrases to explain the consequences. You should probably also edit local_links.php, go to the section which starts
// #################### Add Entry
if ($_REQUEST['action'] == "addlink") { and change the line $linkurl = "http://"; to whatever you want to $linkurl = "";
If you want to skip showing the url box altogether, then you need to edit the link_addnewlink templates, and change the line <input type="text" class="bginput" name="linkurl" value="$linkurl" size="50" />, e.g. to [code]<input type="hidden" name="linkurl" value="$linkurl" />
sherykah
04-28-2005, 05:55 PM
Andrew,
Thank you very much.
FightRice.com
04-29-2005, 12:59 AM
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
AndrewD
04-29-2005, 03:59 AM
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
Thanks
I don't think I've answered that question before ;)
What features would you like to see on a QuickLinks drop down? No promises...
emtee
04-29-2005, 05:46 AM
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!
AndrewD
04-30-2005, 07:13 AM
Supported release is now 1.60b (see first post in this thread for details).
Andrew
Slave
04-30-2005, 08:24 AM
Installed .. :)
Can't see anything wrong at the moment AndrewD .. nice job! .. :)
Allan
04-30-2005, 08:35 AM
This is a good idea. I will make a couple of changes in 1.60b (coming this weekend) to show the new links:
- The home category display will indicate the number of new entries since the last visit, with a clickable link to display them all
- The "Show What's New" will do the same thing if *days_seen_on_portal* is set to zero.
I hope this what you want.
It was to add in this version AndrewD ?
AndrewD
04-30-2005, 08:59 AM
It was to add in this version AndrewD ?
Yes, it's there.
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.
Allan
04-30-2005, 04:49 PM
I have to throw the update and he says to me :
Upgrade vb Links to Links and Files 1.60
Checking installation status...
I cannot find the vb Links tables in this database - unable to continue.
:(
AndrewD
04-30-2005, 06:26 PM
I have to throw the update and he says to me :
Upgrade vb Links to Links and Files 1.60
Checking installation status...
I cannot find the vb Links tables in this database - unable to continue.
:(
You're trying to run the 'upgrade_vblinks' script, which is intended to upgrade people from the similar hack that was written for VBulletin version 2.
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.
calorie
05-07-2005, 03:31 AM
<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>
RichieBoy67
05-07-2005, 03:39 AM
Nice addon!!! Thanks...
calorie
05-07-2005, 03:55 AM
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.
Nice addon!!! Thanks...
calorie
05-07-2005, 06:12 AM
<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>
AndrewD
05-07-2005, 09:58 AM
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.
Perhaps it's worth explaining the difference between boolean fulltext searches and LIKE searches in MySQL?
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.
calorie
05-07-2005, 02:23 PM
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 (http://primes.utm.edu/glossary/search_note.php). It's a matter of preference, so "only apply these changes if wanted." ;)
Perhaps it's worth explaining the difference between boolean fulltext searches and LIKE searches in MySQL?
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.
skokarl
05-07-2005, 03:00 PM
@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 ..
calorie
05-07-2005, 07:53 PM
<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>
Imperial Fritz
05-07-2005, 10:48 PM
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 :)
AndrewD
05-08-2005, 03:42 AM
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.
Hey man, I appreciate all the help - especially the facility to add comments - but is there a long string of these changes to come? If so, we need to think about how these will be supported as and when the main code evolves.
AndrewD
05-08-2005, 04:00 AM
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 :)
Thanks for spotting this. Patched version uploaded - there's a one line change in the template file and an extra phrase.
AndrewD
05-08-2005, 04:03 AM
@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 ..
Skokarl, do you want to change the wording of the menus or do you want to make bigger changes - maybe you could explain?
skokarl
05-08-2005, 04:52 AM
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.
AndrewD
05-08-2005, 05:07 AM
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.
Indeed, maybe in the future, but I'm not sure why this change would make the database any smaller? There is (I think) only one feature that causes the database to grow - this is keeping track of who has accessed a link/download. You can turn that off on the admin page.
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.
CSS59
05-08-2005, 05:09 AM
is there "Top Rated" from all the rated links option?
AndrewD
05-08-2005, 05:29 AM
is there "Top Rated" from all the rated links option?
Not at present - 'Show What's Hot' sorts by number of hits. Not hard to add, if this is an important feature.
calorie
05-08-2005, 01:56 PM
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.
//================================================== ================================================== ===============
In the 'if ($_REQUEST['action'] == "show")' statement of local_links.php find:
//================================================== ================================================== ===============
if ($sstring <> "") $message .= ' '.$vbphrase['ll_matching'].' '.$sstring;
//================================================== ================================================== ===============
And replace with:
//================================================== ================================================== ===============
if ($sstring <> "") $message .= ' '.$vbphrase['ll_matching'].' '.htmlspecialchars($sstring,ENT_QUOTES);
//================================================== ================================================== ===============
In the 'if ($_REQUEST['action'] == "show")' statement of local_links.php find:
//================================================== ================================================== ===============
if ($sstring <> "") $action = "&search=$sstring";
if ($sforum <> "") $action .= "&forum=$sforum";
//================================================== ================================================== ===============
And replace with:
//================================================== ================================================== ===============
if ($sstring <> "") $action = "&search=".urlencode($sstring);
if ($sforum <> "") $action .= "&forum=".urlencode($sforum);
Hey man, I appreciate all the help - especially the facility to add comments - but is there a long string of these changes to come? If so, we need to think about how these will be supported as and when the main code evolves.
AndrewD
05-08-2005, 05:00 PM
Sorry, but I don't guarantee support for any of my mods. Perhaps this may make some people unhappy, but I have time constraints.
.. as do we all ...
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.
calorie
05-08-2005, 05:24 PM
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... ;)
.. as do we all ...
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.
Slave
05-09-2005, 11:26 AM
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.
Which is what I'll be waiting for .. I'd much perfer to see the comments subhack as part of the main hack .. with all of the intergration that would include (permissions etc) ..
Looking forward to it if it happens, but saying that I'm very happy with the hack as it is .. :)
calorie
05-09-2005, 08:10 PM
<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>
calorie
05-09-2005, 08:43 PM
In local_links.php find:
if ($_REQUEST['action'] == "doeditlink") {
And afterwards find:
foreach ($pcatid as $p) {
$DB_site->query("
INSERT INTO ".THIS_TABLE."linksltoc (linkid, catid)
VALUES ('$viewlinkid', '$p')
");
}
And replace with:
foreach ($pcatid as $p) {
$DB_site->query("
INSERT INTO ".THIS_TABLE."linksltoc (linkid, catid)
VALUES ($viewlinkid, ".intval($p).")
");
}
Maybe it'd be better to check that $pcatid (and other variables) contain valid value(s) before getting to a query. FWIW. :)
AndrewD
05-10-2005, 04:13 AM
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?
Tradjick
05-10-2005, 09:28 PM
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.
AndrewD
05-11-2005, 04:17 AM
Is it possible that a user can edit only his own links and not those submitted by others?
This is already possible. A link can always be edited by the submitting user and *also* by users who are in groups that have *can_edit_link* privilege (go to the links admin page). By default, *can_edit_link* is set so that only members of the admin group have this privilege.
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.
I'll think about this and let you know.
Tradjick
05-11-2005, 03:09 PM
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:
Tradjick
05-11-2005, 07:06 PM
I just altered the links_linkbit a little bit. If anyone likes it, here?s the 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=$linki d&catid=$viewcatid&page=$pagenumber">1</a>/ <a href="local_links.php?action=doratelink&vote=2&id=$linki d&catid=$viewcatid&page=$pagenumber">2</a>/ <a href="local_links.php?action=doratelink&vote=3&id=$linki d&catid=$viewcatid&page=$pagenumber">3</a>/ <a href="local_links.php?action=doratelink&vote=4&id=$linki d&catid=$viewcatid&page=$pagenumber">4</a>/ <a href="local_links.php?action=doratelink&vote=5&id=$linki d&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&cat id=$viewcatid&page=$pagenumber" title="$vbphrase[ll_edit]">$vbphrase[ll_editlc]</a> </if> </span> </td> </fieldset> </fieldset> </tr> </table> </fieldset> </td> </tr>
Does one have to make the line breaks manually in vB HTML code? I copied from Uedit.
Tradjick
05-11-2005, 10:45 PM
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
AndrewD
05-12-2005, 04:24 AM
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
One of the arguments being passed from the permissions form to the script is bad. This shouldn't happen. Have you edited the admin templates at all?
Please can you upload the attached version of local_links_admin.php and go through the process of saving the settings. It will not actually save anything, but instead will produce a page of debugging messages. Pls send these to me by PM so I can take a look. Once you're done, just re-upload the original loccal_links_admin.php
AndrewD
05-12-2005, 05:11 PM
One of the arguments being passed from the permissions form to the script is bad. This shouldn't happen. Have you edited the admin templates at all?
Please can you upload the attached version of local_links_admin.php and go through the process of saving the settings. It will not actually save anything, but instead will produce a page of debugging messages. Pls send these to me by PM so I can take a look. Once you're done, just re-upload the original loccal_links_admin.php
I don't understand why, but the value of monitor_dir is being returned from the form in the wrong format. I cannot reproduce this. However, the attached version of local_links_admin.php should correct the bug. Can you try?
Can you also let me know what version of php you are using.
Tradjick
05-12-2005, 07:32 PM
Excellent! It works now.
Is that problem also fixed for future updates?
Thank you so much!
AndrewD
05-13-2005, 04:13 AM
Excellent! It works now.
Is that problem also fixed for future updates?
Thank you so much!
Good, fixed and uploaded and imprinted on my mind...
joeychgo
05-13-2005, 01:31 PM
INstalled again on my new Mopar Forum (http://www.forabodiesonly.com/mopar/local_links.php) - Thanks for the great hack!
CHIngs
05-16-2005, 12:55 AM
On the next version, can you please include a feature where we can limit ONE DOWNLOAD until the TIME SPECIFIED?
Because I tried it on my own and it didnt seem to quite work.
AndrewD
05-16-2005, 05:21 AM
On the next version, can you please include a feature where we can limit ONE DOWNLOAD until the TIME SPECIFIED?
Because I tried it on my own and it didnt seem to quite work.
Thanks for the suggestion. Do you mean:
- When a user enters a link/file, she specifies the first time at which it can be accessed? (e.g. at 15:00 on the 1st June)
or
- The administrator can set up the database for that people can only make multiple downloads at certain times of day? (e.g. between 09:00 and 12:00)
or something else?
Slave
05-16-2005, 08:44 AM
++++ .. I was happily adding links to my db and I suddenly get the following error message ..
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT DISTINCT link.linkid AS linkid, link.linkname AS linkname, link.linkuserid AS linkuserid,
link.linkusername AS linkusername, link.linkurl AS linkurl, link.linkimg AS linkimg, link.linkdesc AS linkdesc,
link.linkhits AS linkhits, link.linkstatus AS linkstatus, link.linkdate AS linkdate,
link.linkmoderate AS linkmoderate,
ltoc.catid AS linkcatid, ltoc.displayorder AS linkdorder, ltoc2.catid AS linkcatid2
FROM (local_linkslink AS link
LEFT JOIN local_linksltoc AS ltoc
ON link.linkid = ltoc.linkid)
LEFT JOIN local_linksltoc AS ltoc2
ON link.linkid = ltoc2.linkid
WHERE
ltoc.catid = '6'
AND link.linkforum NOT IN (0)
ORDER BY linkdorder ASC, linkname ASC, linkcatid ASC
mysql error: Can't open file: 'local_linkslink.MYD'. (errno: 145)
mysql error number: 1016
Date: Monday 16th of May 2005 10:40:41 AM
Script: /local_links.php?catid=6
Referer: /local_links.php?action=links&catid=-1
Username: Slave
IP Address: 81.433.23.12
So I go and have a look at the local_linkslink table within the db and it's empty! and semingly corrupted ..
:(
So a quick reminder to peeps to keep things backed up .. just in case! Luckily I've got a backup from a few days ago I think so it's not too bad ..
AndrewD .. anything in the code that would cause this? .. or have you heard anything like that before?
AndrewD
05-16-2005, 08:48 AM
++++ .. I was happily adding links to my db and I suddenly get the following error message ..
[code]Database error in vBulletin 3.0.3:
So a quick reminder to peeps to keep things backed up .. just in case! Luckily I've got a backup from a few days ago I think so it's not too bad ..
AndrewD .. anything in the code that would cause this? .. or have you heard anything like that before?
Ouch!
I've not seen this happen before - as you say, it looks like a corrupt database table.
I've found that it's worthwhile doing regular optimize/repair checks on your database - the VB admin page permits this, or phpmyadmin can do it also.
Slave
05-16-2005, 08:50 AM
In fact I went one step further and repaired the table using the vB tools.php within the admin folder ..
/me wipes his brow!
Slave
05-16-2005, 08:56 AM
Ouch!
I've not seen this happen before - as you say, it looks like a corrupt database table.
I've found that it's worthwhile doing regular optimize/repair checks on your database - the VB admin page permits this, or phpmyadmin can do it also.
Yeah .. I found the repair option :) .. didn't even know it was there.
Lucky I did before I did something stupid and overwrote the db with a backup .. it doesn't look like I've lost anything .. :)
CHIngs
05-17-2005, 12:16 AM
Thanks for the suggestion. Do you mean:
- When a user enters a link/file, she specifies the first time at which it can be accessed? (e.g. at 15:00 on the 1st June)
or
- The administrator can set up the database for that people can only make multiple downloads at certain times of day? (e.g. between 09:00 and 12:00)
or something else?
Both the ideas you just said seem good to be included as well.
But what I mean is that, say a user clicks on a link, the script should LOG the exact second/minute/hour/day (and other info) in the database. In the ADMIN PANEL, I will specify the intervals between each download, say 60 seconds. So if a user tries to download another file within 60 seconds, it will give him/her an error message saying they have to wait 60 seconds until the NEXT download.
The code may look something similar to this:
if ($time_of_download >= $current_time - 60)
{
echo ("Please wait 60 seconds until next download");
}
And you can make this feature GLOBAL (easy) or for individual category where the admin can specify individual times (a little more work). Its your choice.
But all I am asking is that, somehow, please try your best to include this feature in the next release, or a mini release :rolleyes: .
AndrewD
05-17-2005, 04:13 AM
But what I mean is that, say a user clicks on a link, the script should LOG the exact second/minute/hour/day (and other info) in the database. In the ADMIN PANEL, I will specify the intervals between each download, say 60 seconds. So if a user tries to download another file within 60 seconds, it will give him/her an error message saying they have to wait 60 seconds until the NEXT download.
This feature is already coded as a global setting. You set the parameter timeout_hit_allow on the admin panel to the number of seconds between successive downloads. Let me know if you have problems with it.
CHIngs
05-18-2005, 12:17 AM
This feature is already coded as a global setting. You set the parameter timeout_hit_allow on the admin panel to the number of seconds between successive downloads. Let me know if you have problems with it.
Do you have it in version 1.55? cause I cannot see it :(
Lizard King
05-18-2005, 02:12 AM
Do you have it in version 1.55? cause I cannot see it :(
The supported version is 1.60c I advise you to upgrade to the latest version.
AndrewD
05-18-2005, 04:16 AM
The supported version is 1.60c I advise you to upgrade to the latest version.
Indeed. This feature was added by request in version 1.56.
When upgrading, remember to check all the steps. It's important to upload/install the latest phrases and templates as well as code.
CHIngs
05-18-2005, 07:34 PM
Indeed. This feature was added by request in version 1.56.
When upgrading, remember to check all the steps. It's important to upload/install the latest phrases and templates as well as code.
I know this is a stupid question but I just want to be sure. I can upgrade from 1.55 to 1.60c directly right? or do I first have to upgrade to 1.56 and then to 1.60c?
Because to make sure the script fits my template, I had to do some modifications. I dont want to lose anything in my database. I backed up everything tho, so thats cool.
Lizard King
05-19-2005, 03:52 AM
I know this is a stupid question but I just want to be sure. I can upgrade from 1.55 to 1.60c directly right? or do I first have to upgrade to 1.56 and then to 1.60c?
Because to make sure the script fits my template, I had to do some modifications. I dont want to lose anything in my database. I backed up everything tho, so thats cool.
Yes you can upgrade from 1.55 to 160c without upgrading to 1.56. Just download the file and follow the instructions in Readme.txt
It wont take you more then 3-4 minutes to upgrade.
playstation
05-19-2005, 10:31 AM
Working great.
Thank you.
*clicks install*
Bhuwan
05-24-2005, 11:49 PM
I am using this as a way to hide my links for downloads and unfortunately i've found a major bug that defeats the purpose of the this hack :(
Bhuwan
05-25-2005, 12:08 AM
fixed
Ranma2k
05-26-2005, 11:58 PM
Hi AndrewD,
First i want to say thanks for the hack :) it helped me a lot .. and i hope you can upgrade it to work with vb 3.5.0 when it releases :D
Second : I wrote a script that extend your hack to help my website needs (A Ticket system )
i have been using it on my site for a quite time now ..
I received a request from people to share the ticket system with them but since it's originally your hack + the addon script i was wondering if it's ok to do so ?!
Thanks
Kei Kurono
05-27-2005, 02:03 PM
How do i make it so instead of linking direct urls like this
http://www.mognet.info/file/stuff/godzilla.mp3
I can link like this
/stuff/godzilla.mp3
Can anybody please show me how ?
Yes when you add links it says you can do that but i have tried and it says i got the link wrong.
What am i doing wrong ?
AndrewD
05-27-2005, 03:00 PM
Hi AndrewD,
First i want to say thanks for the hack :) it helped me a lot .. and i hope you can upgrade it to work with vb 3.5.0 when it releases :D
Second : I wrote a script that extend your hack to help my website needs (A Ticket system )
i have been using it on my site for a quite time now ..
I received a request from people to share the ticket system with them but since it's originally your hack + the addon script i was wondering if it's ok to do so ?!
Thanks
Thanks - I'm very happy for you to share the work - the only proviso is that if it leads to support requests back in this forum, we need to sort out the details, so that we're not looking after multiple code versions. I'm sure you will handle this just fine.
AndrewD
05-27-2005, 03:09 PM
How do i make it so instead of linking direct urls like this
Not sure - by default, if you create a link to a file called sally.pdf on your site, which is in subdirectory /fred/jim then you should be able to specify either http://yoursite.com/fred/jim/sally.pdf or /fred/jim/sally.pdf. Be aware that the default starting point is the root of your web site, not your forum directory, so if you are trying to get at a subdirectory of your forums, then you need to stick the forum directory name at the start of the structure.
If you change the parameter local_file_root (lf admin page) from 0 to 1, then the file is specified relative to your server's file system. This gives a way to store files outside the directory structure, provided you're careful about security settings on your site.
Slave
05-30-2005, 07:52 AM
Hi AndrewD :)
Any chance you could make it so that when you create a linked sub forum the system also creates a link within that category back to the forum in question.
I'm just thinking about the "circle" users take .. They look at a forum, see the link to the category, click it, checkout the links, they then want to get back to the forum they were in. It would be nice if, near the top, there was a link to that forum.
AndrewD
05-30-2005, 09:16 AM
Hi AndrewD :)
Any chance you could make it so that when you create a linked sub forum the system also creates a link within that category back to the forum in question.
I'm just thinking about the "circle" users take .. They look at a forum, see the link to the category, click it, checkout the links, they then want to get back to the forum they were in. It would be nice if, near the top, there was a link to that forum.
Good idea - I have a stack of 'tidying up' changes waiting to release in 1.61 - mainly those suggested by catalyst - I'll give this some thought. I'm hoping that the VVB3.5 plugin system is not going to require too many changes
Spinball
05-30-2005, 01:07 PM
While we're in 'suggestions mode', I'd like to suggest the option of having category be a link elsewhere.
For example, we have a home cinema installers directory. It's a thread in which people pay to have an entry. It's a list of links but since people pay for it, I want it to be maintained by myself within a specific forum.
I'd like to be able to include it in the links database using a link to that specific thread as the category link.
In a similar way to forum categories being links elsewhere.
Is this possible?
Slave
05-30-2005, 07:12 PM
Good idea - I have a stack of 'tidying up' changes waiting to release in 1.61 - mainly those suggested by catalyst - I'll give this some thought. I'm hoping that the VVB3.5 plugin system is not going to require too many changes
Cool :)
One other thing while you're there ..
Any chance you could make it that we can pick a vB style per category? or the same style as the forum I link the category to?
Goodspeed
05-30-2005, 10:32 PM
Great hack!
But there is one important question: is it possible to convert pafiledb database into this hack?
Thank you!
AndrewD
05-31-2005, 04:26 AM
Great hack!
But there is one important question: is it possible to convert pafiledb database into this hack?
Thank you!
I'm sure it's possible - but I've never used pafiledb.
a) Can you code in php? If so, you could use the source code in the subdirectory upgrade_vblinks (see the release zip file) as a template
b) can pafiledb export its contents in some readable format? If so, we could probably tweak that format to be imported here.
AndrewD
05-31-2005, 04:28 AM
Cool :)
One other thing while you're there ..
Any chance you could make it that we can pick a vB style per category? or the same style as the forum I link the category to?
Will have a look - second option is probably the easier
Arial
05-31-2005, 12:10 PM
Hi
Can you tell me how I can allow somebody to use the 'ADD LINK' function if they are not a admin on the forum, can it be done via groups somehow?
AndrewD
05-31-2005, 12:13 PM
Hi
Can you tell me how I can allow somebody to use the 'ADD LINK' function if they are not a admin on the forum, can it be done via groups somehow?
Straightforward - select links/administration/permissions and settings and specify the user groups who should have this (or any other) privilege.
The code works on VBulletin extended user groups so anybody who is either a primary or secondary member of the specified groups gains the right to add links.
wattieuk
06-01-2005, 04:13 PM
Installed this but there was no facility to add links. Checked the permissions and reinstalled the hack but still no joy. Gave me the admin page, just no way at all of ading categories and links. Therefore it proved uselss for me, but must have being doing something wrong although I followed the steps to the letter.
AndrewD
06-02-2005, 10:54 AM
Installed this but there was no facility to add links. Checked the permissions and reinstalled the hack but still no joy. Gave me the admin page, just no way at all of ading categories and links. Therefore it proved uselss for me, but must have being doing something wrong although I followed the steps to the letter.
Have you created a category? Until you do so, there is nowhere to put any links. The 'add link' command is only visible when you are in a place where the links can be stored, i.e. withi categories. This is the only thing I can think of.
wattieuk
06-02-2005, 11:58 AM
thanks for the reply but there was no way to add a category either. :disappointed:
AndrewD
06-02-2005, 03:35 PM
thanks for the reply but there was no way to add a category either. :disappointed:
Then something must have been missed out during the installation - can you pm me details of your board and ideally an admin username and pwd so I can take a look.
rmorley
06-03-2005, 04:01 PM
I installed v1.60, and set the Moderate_links setting to 1. I then created a catagory, and added a couple of links via an admin user. These instantly appears, since I was the admin. That's OK. I then went to the website agian on another computer, did not log into the Vbulletin software, created another link, and it too showed up, even though I was not logged in.
It looks as though I am doing someting wrong because I cannot get the moderation to kick in for non-administrators. I double checked the permissions, and administrators are the only group set to handle the moderation of new links.
Any ideas?
Thanks
Rob
AndrewD
06-03-2005, 07:32 PM
I installed v1.60, and set the Moderate_links setting to 1. I then created a catagory, and added a couple of links via an admin user. These instantly appears, since I was the admin. That's OK. I then went to the website agian on another computer, did not log into the Vbulletin software, created another link, and it too showed up, even though I was not logged in.
It looks as though I am doing someting wrong because I cannot get the moderation to kick in for non-administrators. I double checked the permissions, and administrators are the only group set to handle the moderation of new links.
Any ideas?
Thanks
Rob
If a link is created by a user who is authorised to moderate links, then the link is immediately accepted. Moderation only applies to links created by users who are not authorised to moderate. I suspect that is what you are seeing.
The separate question is how to create links that can only be viewed by certain users. You do this by associating the link with a VB forum which has the required viewing permissions.
rmorley
06-04-2005, 01:26 AM
Ok Andrew, so if I want to allow anyone to view and add links, but I want to moderate all the added links, I should set moderate_link parameter to 1, and set default_forumid to "none". In the permissions section the can_add_link parameter has every usergroup checked.
I am not sure if it matters, but I set "Can_Set_permissions" to only the administrator.
Is there anything I am missing? I cant explain it, but unregistered users are seeing all links, even those awaiting moderation. However, a registered user does not see the items awaiting moderation.
Thanks for your help, and sorry about being a pest.
If a link is created by a user who is authorised to moderate links, then the link is immediately accepted. Moderation only applies to links created by users who are not authorised to moderate. I suspect that is what you are seeing.
The separate question is how to create links that can only be viewed by certain users. You do this by associating the link with a VB forum which has the required viewing permissions.
AndrewD
06-04-2005, 11:50 AM
Ok Andrew, so if I want to allow anyone to view and add links, but I want to moderate all the added links, I should set moderate_link parameter to 1, and set default_forumid to "none". In the permissions section the can_add_link parameter has every usergroup checked.
I am not sure if it matters, but I set "Can_Set_permissions" to only the administrator.
Is there anything I am missing? I cant explain it, but unregistered users are seeing all links, even those awaiting moderation. However, a registered user does not see the items awaiting moderation.
Thanks for your help, and sorry about being a pest.
I understand the problem ;)
When moderation is switched on, new links are only visible to the user who submitted the entry and to moderators, until the link has been moderated.
However, if you allow an unregistered user to add new links, this creates the difficulty you observe. Logic:
- link was created by userid 0 (the userid of an unregistered user)
- any other unregistered user also has userid 0, therefore the hack thinks that they are the same user who added the link, therefore displays the unmoderated link.
- any registered user who is not a moderator has a different userid, therefore cannot see the unmoderated link
Possible solutions:
- I change the code so that links added by unregistered users are only visible to moderators (i.e. not even to the person who added the link) until the link has been accepted by a moderator
- You only allow registered users to add links
- maybe there's another possible solution?
What do you think is best?
rmorley
06-04-2005, 01:42 PM
Good, I'm glad I'm not going crazy. It does make sense now. Although it would be a bit more difficult, I think Option 1 (Links added by unregistered users can only be view by moderators) would probably be the best option.
Option two, I believe, could probably be implemented using the Default_Forumid parameter, if you wanted to restrict to only registered members.
Do you think this is a quick modification? If you can make the change, I would be willing to test it out for you.
Rob Morley
I understand the problem ;)
When moderation is switched on, new links are only visible to the user who submitted the entry and to moderators, until the link has been moderated.
However, if you allow an unregistered user to add new links, this creates the difficulty you observe. Logic:
- link was created by userid 0 (the userid of an unregistered user)
- any other unregistered user also has userid 0, therefore the hack thinks that they are the same user who added the link, therefore displays the unmoderated link.
- any registered user who is not a moderator has a different userid, therefore cannot see the unmoderated link
Possible solutions:
- I change the code so that links added by unregistered users are only visible to moderators (i.e. not even to the person who added the link) until the link has been accepted by a moderator
- You only allow registered users to add links
- maybe there's another possible solution?
What do you think is best?
AndrewD
06-04-2005, 02:05 PM
Good, I'm glad I'm not going crazy. It does make sense now. Although it would be a bit more difficult, I think Option 1 (Links added by unregistered users can only be view by moderators) would probably be the best option.
Option two, I believe, could probably be implemented using the Default_Forumid parameter, if you wanted to restrict to only registered members.
Do you think this is a quick modification? If you can make the change, I would be willing to test it out for you.
Rob Morley
Assuming that you are running v1.60, try the attached local_links.php. It's almost complete - the change also requires a mod to the 'whats new' count, but this should be enough for now. Let me know.
rmorley
06-04-2005, 02:38 PM
Preliminary tests look good. I will continue to test it, and let you know what I find out. Thanks agian for responding so quickly, and putting together a quick fix for the problem!
Assuming that you are running v1.60, try the attached local_links.php. It's almost complete - the change also requires a mod to the 'whats new' count, but this should be enough for now. Let me know.
rmorley
06-05-2005, 01:35 AM
Andrew,
I am not sure if this is already in the works, or I just missed it on the admin page. When moderation is turned on, is it possible to have Vbulletin email a moderator so that they can review the added link and accept or reject it.
Is this option possible by using the default_forumid parameter?
Thanks
Rob
AndrewD
06-05-2005, 06:49 AM
Andrew,
I am not sure if this is already in the works, or I just missed it on the admin page. When moderation is turned on, is it possible to have Vbulletin email a moderator so that they can review the added link and accept or reject it.
Is this option possible by using the default_forumid parameter?
Thanks
Rob
This is not in the system at present and no-one had asked for it, but I'll give it some thought. I'm wary about the consequences - do different moderators receive different emails, do standard users receive emails when there is something new, should this be a 'cron' job - i.e. regular emails announcing status, etc.
The forum assignment does not have any connection with this - it is basically a mechanism for providing security and association.
rmorley
06-05-2005, 11:34 AM
I had not thought of the new post notification for users. You could probably use some of the same code used in the subscription notification in VBulletin, but I am not sure how important this would be. I just looked at Vbulletin, and it looks like there is a cron job setup to handle thread subscriptions on an hourly basis. Rather than trying to re-create this, would it be possible to tap into the thread/post subscription process? I am not very familiar with the VBulletin coding, so I have no idea of the complexity of this enhancement.
Regarding emailing moderators, I was thinking about the possibility of creating a Moderator_Email_Address parameter. Then, when a new link is added, and being held for moderation, an Email could be sent to the moderator(s). Since this would probably only email a few folks, I was thinking that this could be run when the submit button is clicked.
Thanks agian for the enhancement that handles moderation of unregistered users.
-Rob
This is not in the system at present and no-one had asked for it, but I'll give it some thought. I'm wary about the consequences - do different moderators receive different emails, do standard users receive emails when there is something new, should this be a 'cron' job - i.e. regular emails announcing status, etc.
The forum assignment does not have any connection with this - it is basically a mechanism for providing security and association.
Goodspeed
06-05-2005, 01:39 PM
I'm sure it's possible - but I've never used pafiledb.
a) Can you code in php? If so, you could use the source code in the subdirectory upgrade_vblinks (see the release zip file) as a template
b) can pafiledb export its contents in some readable format? If so, we could probably tweak that format to be imported here.
Andrew unfortunately I got really low skill in coding.
There is only database backup available in pafile db, is it possible to move data from sql dump to csv?
Forgot to ask you: is it possible to setup links category view in the same way as forum category view, I mean dept of forums? Something like here, at vbulletin.org?
Thank you for your help!
AndrewD
06-05-2005, 02:11 PM
Andrew unfortunately I got really low skill in coding.
There is only database backup available in pafile db, is it possible to move data from sql dump to csv?
Forgot to ask you: is it possible to setup links category view in the same way as forum category view, I mean dept of forums? Something like here, at vbulletin.org?
Thank you for your help!
I took a quick look at pafiledb. It's quite easy to translate the database format, however it would take me several hours to write and text the code. How many entries and categories do you have in your pafile database?
Concerning the second question, you can set up the category view to include subcategories to any depth.
Goodspeed
06-05-2005, 02:50 PM
I took a quick look at pafiledb. It's quite easy to translate the database format, however it would take me several hours to write and text the code. How many entries and categories do you have in your pafile database?
Concerning the second question, you can set up the category view to include subcategories to any depth.
Andrew,
We have about 20 categories and 300 files in databse. And we have 3 databases based on pafiledb: files database, addons databse and missions database. We had to made 3 different databases because this script doesn't allow to make subcategories. Also here is very important fields like filesize and author - is it possible to convert these data too?
Andrew, I have tried to make different dept but unfortunately can't do this. Because color of categories and sub-categories alternate all the time without account for importance or parent of category.
Ones again thank you for your help, I appreciate it.
AndrewD
06-05-2005, 03:26 PM
Andrew,
We have about 20 categories and 300 files in databse. And we have 3 databases based on pafiledb: files database, addons databse and missions database. We had to made 3 different databases because this script doesn't allow to make subcategories. Also here is very important fields like filesize and author - is it possible to convert these data too?
Andrew, I have tried to make different dept but unfortunately can't do this. Because color of categories and sub-categories alternate all the time without account for importance or parent of category.
Ones again thank you for your help, I appreciate it.
Send me the pafiledb sql backups by email - ad_rodin at noos.fr - I'll take a look
ProperMethodz
06-06-2005, 07:18 PM
Awesome mod! I just added it. The ease of install should seriously be commended on this one! HUGE THUMBS UP!
I guess the only thing missing is possibly a way to have the "Who's Viewing" thing to work with it.
Goodspeed
06-07-2005, 10:48 AM
Send me the pafiledb sql backups by email - ad_rodin at noos.fr - I'll take a look
I have sent SQL dump to you Andrew, thank you for your help!
Arial
06-07-2005, 02:22 PM
Hi
We have the hack setup here:
http://www.global-army.com/forum/local_links.php?
And am very pleased with it however, we have a bit of a problem with perms.
We created a group in admincp called links
Then we added the user to that group.
Then we used the hacks admin tool to allow that user to add links etc
Which worked BUT..
It also gave him rights to all our private forums.
Sorry we are a bit noobish, can you advise .
AndrewD
06-08-2005, 04:02 AM
I have sent SQL dump to you Andrew, thank you for your help!
Got it, thanks. Will take a look when I have a chance - probably it will be at the weekend
Andrew
AndrewD
06-08-2005, 04:42 AM
Hi
We have the hack setup here:
http://www.global-army.com/forum/local_links.php?
And am very pleased with it however, we have a bit of a problem with perms.
We created a group in admincp called links
Then we added the user to that group.
Then we used the hacks admin tool to allow that user to add links etc
Which worked BUT..
It also gave him rights to all our private forums.
Sorry we are a bit noobish, can you advise .
Surely you need to go to the regular VB admin page / Forum Permissions and remove viewing permissions for links from your private forums?
Lizard King
06-08-2005, 05:05 PM
Andrew my members today informed me a strange situation. Normally they never faced a problem like this but a member uploaded a 123 mb file from ftp to the server and added it to links section. When someone clicks on the link it opens the link in a new window and wait like 15-20 seconds then it start downloading and when it reachs 48kb it says completed. Do you have any idea what can cause this ?
When I try to download from ftp i have no problems.
AndrewD
06-08-2005, 06:50 PM
Andrew my members today informed me a strange situation. Normally they never faced a problem like this but a member uploaded a 123 mb file from ftp to the server and added it to links section. When someone clicks on the link it opens the link in a new window and wait like 15-20 seconds then it start downloading and when it reachs 48kb it says completed. Do you have any idea what can cause this ?
When I try to download from ftp i have no problems.
Yes, the problem is related to how you provide access.
If you have force_redirect=0 (the default value of the parameter on the admin page), then downloads are mediated by the script. In that case, large files can use up all the cpu time available to the script (typically 30 seconds). If you set force_redirect=1, then there is no problem with downloading large files, but the location of the file becomes visible to the user. It's a question of how important you find security versus cpu time. If you want to keep file locations secure, then you need to permit php scripts to use sufficient cpu time to read and re-transmit the file. If you prefer to limit cpu usage and are not concerned about security, then change the setting of force_redirect.
OK?
Andrew
Lizard King
06-09-2005, 04:27 PM
Yes, the problem is related to how you provide access.
If you have force_redirect=0 (the default value of the parameter on the admin page), then downloads are mediated by the script. In that case, large files can use up all the cpu time available to the script (typically 30 seconds). If you set force_redirect=1, then there is no problem with downloading large files, but the location of the file becomes visible to the user. It's a question of how important you find security versus cpu time. If you want to keep file locations secure, then you need to permit php scripts to use sufficient cpu time to read and re-transmit the file. If you prefer to limit cpu usage and are not concerned about security, then change the setting of force_redirect.
OK?
Andrew
I am keeping the security more important then downloads but is there a way to get this working ? If yes how can i do that ? I have a shared hosting and will it work with it ?
AndrewD
06-11-2005, 08:55 AM
I am keeping the security more important then downloads but is there a way to get this working ? If yes how can i do that ? I have a shared hosting and will it work with it ?
You change the cpu limit for your scripts by modifying the parameter max_execution_time in your php.ini file. By default, this tends to be set to 30 seconds.
The least cpu intensive way to provide downloads is to ensure that the files are on your server and to create the links by referring to them using the local file name, e.g as /dir/file.typ rather than as http://site/dir/file.typ.
AndrewD
06-26-2005, 10:01 AM
I have uploaded a first beta of this hack in the VB35 forums here (https://vborg.vbsupport.ru/showthread.php?t=91107)
I have uploaded a first beta of this hack in the VB35 forums.
For those who are wondering where it is, here ya go (https://vborg.vbsupport.ru/showthread.php?t=91107) :). It has been slightly renamed to 'Links and Downloads Manager 2.0' so it took me a sec to recognize it.
Regardless, cheers for this Andrew.
animehawk
06-27-2005, 03:04 PM
Hmmm... I'm not sure what I did, but When I go to administer the Hacks Database, every page comes up completely blank. I just installed BVShoutboxFULL. So I'm not sure if that would have messed up some file. Everything else seems to work fine and I re-ran the install script just to make sure.
Any help is appreciated.
AndrewD
06-27-2005, 06:13 PM
Hmmm... I'm not sure what I did, but When I go to administer the Hacks Database, every page comes up completely blank. I just installed BVShoutboxFULL. So I'm not sure if that would have messed up some file. Everything else seems to work fine and I re-ran the install script just to make sure.
Any help is appreciated.
Hacks Database?? BVShoutboxFULL?? Anything to do with this hack?
CHIngs
06-28-2005, 04:05 AM
This feature is already coded as a global setting. You set the parameter timeout_hit_allow on the admin panel to the number of seconds between successive downloads. Let me know if you have problems with it.
I updaraded to the latest and I have to say its the BEST yet. But I have one question, I set the timeout_hit_allow to 300 seconds (5 minutes), though I would like it in minutes (suggestion for next version), its no big deal. But I want to show them how much time they have left. The script must be storing that time limit somewhere in the database and I want to show it on the page where it says "Please wait before trying another access - timeout period (seconds): 300."
I want to show it as "Please wait before trying another access - timeout period (seconds): 300, you have *** seconds left for you next download" or something like that. Can anyone please help me out here :).
animehawk
06-28-2005, 10:29 AM
whoops... I didn't mean the hacks database... I must have just been reading about it... anyways... When I click on administer and any of the four options that drop down, it brings up a blank page. Everything else works, and I don't get any db errors. Any Ideas?
:edit: Nevermind. I thought I re-uploaded the file and didn't. Works now.
Thanks!
AndrewD
06-28-2005, 10:41 AM
whoops... I didn't mean the hacks database... I must have just been reading about it... anyways... When I click on administer and any of the four options that drop down, it brings up a blank page. Everything else works, and I don't get any db errors. Any Ideas?
All I can think is that you have somehow got a mismatch between the code and the templates. What link is showing on the administer links? If it reads 'local_links.php' then you've got old code, 'local_links_admin.php' is the current code.
Just try re-uploading the code, templates and phrases and rerunning the install script. It will not cause damage your database.
animehawk
06-28-2005, 10:46 AM
All I can think is that you have somehow got a mismatch between the code and the templates. What link is showing on the administer links? If it reads 'local_links.php' then you've got old code, 'local_links_admin.php' is the current code.
Just try re-uploading the code, templates and phrases and rerunning the install script. It will not cause damage your database.
Thanks. I just re-uploaded all the files and did the whole install again. Works now.
LeeWicKeD
06-28-2005, 12:04 PM
hiho
just updated to 1.60c and now i can't add any new links. it always shows up a message "no category specified"
and in the box "parent categories" there are no categories listed? what did i wrong?
:(
AndrewD
06-28-2005, 03:50 PM
hiho
just updated to 1.60c and now i can't add any new links. it always shows up a message "no category specified"
and in the box "parent categories" there are no categories listed? what did i wrong?
:(
I'll bet that you didn't upload the new templates, or put them in the wrong place. I can reproduce your error exactly by installing the 1.60 code and the 1.55 templates
AndrewD
06-28-2005, 04:04 PM
I updaraded to the latest and I have to say its the BEST yet. But I have one question, I set the timeout_hit_allow to 300 seconds (5 minutes), though I would like it in minutes (suggestion for next version), its no big deal. But I want to show them how much time they have left. The script must be storing that time limit somewhere in the database and I want to show it on the page where it says "Please wait before trying another access - timeout period (seconds): 300."
I want to show it as "Please wait before trying another access - timeout period (seconds): 300, you have *** seconds left for you next download" or something like that. Can anyone please help me out here :).
Thanks.
This is an easy change to make. Two edits:
edit local_links.php. Find these lines
// Prevent multiple hits within specified timeout
if ($links_defaults["timeout_hit_allow"]>0) {
$timeout = $time - $links_defaults["timeout_hit_allow"];
$jumplink = $DB_site->query("
SELECT userid, usertime FROM ".THIS_TABLE."linksdownloads
WHERE userid='".$bbuserinfo[userid]."'
ORDER BY usertime DESC
LIMIT 1
");
while ($jump=$DB_site->fetch_array($jumplink)) {
if ($jump['usertime'] > $timeout) {
eval(print_standard_error($vbphrase['ll_wait'].' '.$links_defaults["timeout_hit_allow"],0));
exit;
}
}
}
and replace with
// Prevent multiple hits within specified timeout
if ($links_defaults["timeout_hit_allow"]>0) {
$timeout = $time - $links_defaults["timeout_hit_allow"];
$jumplink = $DB_site->query("
SELECT userid, usertime FROM ".THIS_TABLE."linksdownloads
WHERE userid='".$bbuserinfo[userid]."'
ORDER BY usertime DESC
LIMIT 1
");
while ($jump=$DB_site->fetch_array($jumplink)) {
$timeleft = $jump['usertime'] - $timeout;
if ($timeleft>0) {
$wait = construct_phrase($vbphrase['ll_wait'], $timeleft, $links_defaults["timeout_hit_allow"]);
eval(print_standard_error($wait,0));
exit;
}
}
}
Then edit local_links_phrases.xml and find the line
<phrase name="ll_wait"><![CDATA[Please wait before trying another access - timeout period (seconds):]]></phrase>
and replace by
<phrase name="ll_wait"><![CDATA[Please wait {1} seconds. Timeout period between accesses: {2} seconds]]></phrase>
I'll make this a permanent fix for version 2.00 but I don't plan any more changes to 1.60 unless there are serious bugs.
CHIngs
07-02-2005, 04:21 AM
Possible BUG...NOTHING SERIOUS... Just a suggestion for a FIX in 2.0...
When I rate a file, the rating is correctly logged and all. But unlike the forum's rating system, your rating system allows members to CHANGE the rating once they have given a rating. Its no big deal but I think in your version 2.0 should have an option in the ADMIN PANEL where the admin can set to allow the members to rate once OR more than once, this way its more flexible depending on the admin's needs.
AndrewD
07-02-2005, 04:33 AM
Possible BUG...NOTHING SERIOUS... Just a suggestion for a FIX in 2.0...
When I rate a file, the rating is correctly logged and all. But unlike the forum's rating system, your rating system allows members to CHANGE the rating once they have given a rating. Its no big deal but I think in your version 2.0 should have an option in the ADMIN PANEL where the admin can set to allow the members to rate once OR more than once, this way its more flexible depending on the admin's needs.
Yes, this was by design - actually they can't give more than one rating - only the latest one that is counted. I'll note your suggestion - thanks.
LeeWicKeD
07-05-2005, 01:19 PM
ok i have now fully translated 1.60c to german ;)
@andrew: do you want it via email or as an attachment in the forum here?
NxTek
07-07-2005, 09:24 PM
Database error in vBulletin 3.0.7:
Invalid SQL: SELECT * FROM local_linksadmin mysql error: Table 'forums.local_linksadmin' doesn't exist
mysql error number: 1146
Date: Thursday 07th of July 2005 05:21:47 PM
Script: http://www.xxxxxxxxxx.com/forums/local_links.php
Super. heh
lovevn
07-19-2005, 04:49 AM
Hi,
This is every good hack. I installed version 1.3 and did not use it because I bought the Vbadvanced links directory. But now I tested the newest version and realized that it is excellent now and I want to use it for my music page.
Things work well. Howerver,I want to give a user group pessmission for ONLY listen(play )the music file but not to DOWNLOAD(it mean that the hyper link to the music file will be hidden). If anyone know how to do this please help me!
Thanks a lot!
AndrewD
07-23-2005, 03:38 PM
ok i have now fully translated 1.60c to german ;)
@andrew: do you want it via email or as an attachment in the forum here?
Sorry for the delay - I've been on holiday. Could you post the translation here? I'll pick it up and include it in the official release.
AndrewD
07-23-2005, 03:43 PM
Hi,
This is every good hack. I installed version 1.3 and did not use it because I bought the Vbadvanced links directory. But now I tested the newest version and realized that it is excellent now and I want to use it for my music page.
Things work well. Howerver,I want to give a user group pessmission for ONLY listen(play )the music file but not to DOWNLOAD(it mean that the hyper link to the music file will be hidden). If anyone know how to do this please help me!
Thanks a lot!
It is an easy edit to the links_linkbit template - you just need to remove the hyperlinks to local_links.php?action=jump - let me know if you need help. I'm not going to make any further releases to the vb 3.0x version of this hack - efforts concentrate on the 3.5x version and I'll include this as an option.
AndrewD
07-23-2005, 03:44 PM
Super. heh
Can't help you with this ;)
lovevn
07-25-2005, 12:00 PM
It is an easy edit to the links_linkbit template - you just need to remove the hyperlinks to local_links.php?action=jump - let me know if you need help. I'm not going to make any further releases to the vb 3.0x version of this hack - efforts concentrate on the 3.5x version and I'll include this as an option.
Thanks for your help!
I changed ocal_links.php?action=jump to ocal_links.php?action=play and and I can hide the url wich let people to download the file now. Beside I also moved the link which let people to download the files in the links_play template to links_linkbit template.
And there one more thing. When people use the send to friend function the url to let people download appear. To solve this problem I chande "jump " to"play" in the $massage.
It works perfect now.
By the ways, is it easy to add the alphabetical search function?
LeeWicKeD
07-25-2005, 12:11 PM
Aight, here's my complete-German translation.
AndrewD
07-26-2005, 04:17 AM
Aight, here's my complete-German translation.
Thanks - am updating the 1.60c release file and will also include in v2.0, etc.
bhxtyrant
07-27-2005, 01:19 AM
Hey guys,I was wondering if someone who has used this mod can answer a few questions of mine.I would like to try this mod out but i do not want to waste my time installing it if it doesnt offer what i need.I already went through this hell with the very buggy vBdownloads2.0 lol.
1.)Can i have Sub-sub-catagories?For example "Music>MP3's>artist name>audio track.mp3"?
2.)I notice it says "can only access the link if she has access to the associated forum".Does this mean all download catagories must be associated with a forum?Or can i use this file/link manager as a standalone download manager?
I.E. you click the downloads link in the forum,it takes you to a page listing all the download catagories.you click one to enter the sub catagories and to download files.
3.)last but not least i wanted to ask can permissions be set for catagories?for example say i want to allow anyone in forums guests and all access to download files from "Audio".But i only want members to be able to download from the "video" catagory.can this be done?
Thats about all i need to know :) thanks alot for your time.
AndrewD
07-27-2005, 09:16 AM
Thanks for your interest.
1.)Can i have Sub-sub-categories?For example "Music>MP3's>artist name>audio track.mp3"?
Yes, indefinitely deep.
2.)I notice it says "can only access the link if she has access to the associated forum".Does this mean all download catagories must be associated with a forum?Or can i use this file/link manager as a standalone download manager?
3.)last but not least i wanted to ask can permissions be set for catagories?for example say i want to allow anyone in forums guests and all access to download files from "Audio".But i only want members to be able to download from the "video" catagory.can this be done?
These two questions are related. The 'associate with forums' process is used to control who can access which categories/downloads. By default, it is turned off, which means that everyone who accesses the hack can see and access everything that is available. The hack is fully stand alone and it is not necessary to associate categories/entries with forums unless you want to control access to individual categories/entries.
To control access, you need to (create/have created) forums with the required access permissions, e.g. member only. When you create a link or a category, you 'point' the link/category at that forum to tell the hack to pick up the appropriate permissions. The links/categories do not form part of the forum, they just pick up the forum's access permissions.
Clear?
bhxtyrant
07-27-2005, 02:35 PM
Ah ok i think i understand,Thanks alot for answering my questions i will be installing this later today :D oh on4e more question if i understand the original post about the mod then it has a "batch" feature as well?
AndrewD
07-27-2005, 06:46 PM
Ah ok i think i understand,Thanks alot for answering my questions i will be installing this later today :D oh on4e more question if i understand the original post about the mod then it has a "batch" feature as well?
Yes, on the admin page/import and export - you can scan a directory (tree) and bulk select files to make available.
bhxtyrant
07-28-2005, 12:27 AM
Awsome man,Thanks alot you dont know what a help you have been to me for creating this mod :) just out of curiosity is there or will there be a version of it for 3.5 as well?
:EDIT:Hey man i successfully installed the mod but have one little problem i can't find how to fix.It's not a bug or anything just a template edit i wish to make.Was hoping you could tell me where to find it :)
https://vborg.vbsupport.ru/ (http://img105.imageshack.us/my.php?image=test7cz.jpg)
Just want to know how i can make the table circled in red a bid wider so names dont get crunched up such as where you see "Resident Evil Code:Veronica" Thanks alot.
AndrewD
07-28-2005, 07:14 AM
Awsome man,Thanks alot you dont know what a help you have been to me for creating this mod :) just out of curiosity is there or will there be a version of it for 3.5 as well?
:EDIT:Hey man i successfully installed the mod but have one little problem i can't find how to fix.It's not a bug or anything just a template edit i wish to make.Was hoping you could tell me where to find it :)
http://img105.imageshack.us/img105/968/test7cz.th.jpg (http://img105.imageshack.us/my.php?image=test7cz.jpg)
Just want to know how i can make the table circled in red a bid wider so names dont get crunched up such as where you see "Resident Evil Code:Veronica" Thanks alot.
a) The alpha release for VB35 is already available here. It seems to work fine - I uploaded it a month ago, and there's only been one minor bug report. I changed the name to Links and Downloads Manager. When VB35goes gold, the official release will include some more functions which are not in the VB30 or alphas VB35 versions - the rating system has been extended to provide user comments (as per an earlier suggestion on this thread); categories can have different styles; etc.
b) To fix your column width, edit the links_catbit template. The second line of this template gives a column width of 20% - change that as you wish.
bhxtyrant
07-29-2005, 07:54 PM
a) The alpha release for VB35 is already available here. It seems to work fine - I uploaded it a month ago, and there's only been one minor bug report. I changed the name to Links and Downloads Manager. When VB35goes gold, the official release will include some more functions which are not in the VB30 or alphas VB35 versions - the rating system has been extended to provide user comments (as per an earlier suggestion on this thread); categories can have different styles; etc.
b) To fix your column width, edit the links_catbit template. The second line of this template gives a column width of 20% - change that as you wish.
Hello once again,thanks alot for all your help.I now have everything up and running but i have one final question.I notice that when i import files from one of my site directories Links Database automatically adds a decription of the file showing the file path where the file is located.This requires manual editing of hundreds of files for me as i do not want the file path to be shown.Is there a way i can disable the option so it doesnt automatically add descriptions?
I also cant seem to get the thumbnail images working.I uploaded the "local_resize" file to my forum directory and am using the "links_linkbit" template.But when i add the link to the image i wish to use all i can get is the red X.my settings in the admin pnale are as follows "allow_images" 1,"link_imagesize" -100.Am i doing something wrong?
AndrewD
07-30-2005, 08:46 AM
I notice that when i import files from one of my site directories Links Database automatically adds a decription of the file showing the file path where the file is located.This requires manual editing of hundreds of files for me as i do not want the file path to be shown.Is there a way i can disable the option so it doesnt automatically add descriptions?
You can disable this 'automatic title' quite easily by editing local_links_admin.php. Find (about line 1316):
list ($insert_status, $linkid) = insert_link ($bbuserinfo['username'], $bbuserinfo['userid'], $title, $key, '', $vbphrase['ll_trawled'].' '.$dir, $pcatid, $pforum, $statuscheck, $moderate, 0);
Replace the string $vbphrase['ll_trawled'].' '.$dir with whatever you like, e.g. '' to have a blank description.
I also cant seem to get the thumbnail images working.I uploaded the "local_resize" file to my forum directory and am using the "links_linkbit" template.But when i add the link to the image i wish to use all i can get is the red X.my settings in the admin pnale are as follows "allow_images" 1,"link_imagesize" -100.Am i doing something wrong?
It works ok for me with these settings. If the image is on your site in, e.g. http://yoursite/dir1/dir2/file.jpg, then you can point to the image either with the full url or as /dir1/dir2/file.jpg. Maybe you're missing the first slash or something?
bhxtyrant
07-30-2005, 04:17 PM
hmm i cleared out the info you said to remove automatic file names but it didnt work :( it only removes the words "trawled by" but the directory /mysite/folder/file.type still gets automatically entered.i tryed removing both the 'll_cat' and 'll_trawled' but it still remains.
But the thumbnails i just can't figure out.i tryed using http://www.neowu.com/bhxtyrant/sigs/deconav.jpg that image as a test to see how ther thumbnails worked but all i get is the red X everytime.I thought that it may be because the image is outside my forum directory so i tryed using an avatar image from the forum and still the same thing.I have tryed both the full URL and the shortened one starting with / is there something i may be missing that i have to do to the "local_resize" file?
AndrewD
07-31-2005, 06:32 AM
hmm i cleared out the info you said to remove automatic file names but it didnt work :( it only removes the words "trawled by" but the directory /mysite/folder/file.type still gets automatically entered.i tryed removing both the 'll_cat' and 'll_trawled' but it still remains.
But the thumbnails i just can't figure out.i tryed using http://www.neowu.com/bhxtyrant/sigs/deconav.jpg that image as a test to see how ther thumbnails worked but all i get is the red X everytime.I thought that it may be because the image is outside my forum directory so i tryed using an avatar image from the forum and still the same thing.I have tryed both the full URL and the shortened one starting with / is there something i may be missing that i have to do to the "local_resize" file?
If you PM me details of an account and pwd with admin privs, I'll take a look.
bhxtyrant
08-01-2005, 05:50 AM
Unfortunatly it's not my forums/server so i can not give you access.It's a freind of mines site.Im just helping him set some things up to make it easier to manage the site.
I have a question once again though.Next to "link_imagesize" am i allowed to put the demensions of an image?for example 130x100?if so how do i do it exactly as it seems to only let me imput a single numer sch as 100.Is this correct?
AndrewD
08-01-2005, 06:16 AM
Unfortunatly it's not my forums/server so i can not give you access.It's a freind of mines site.Im just helping him set some things up to make it easier to manage the site.
I have a question once again though.Next to "link_imagesize" am i allowed to put the demensions of an image?for example 130x100?if so how do i do it exactly as it seems to only let me imput a single numer sch as 100.Is this correct?
Currently, you cannot give both image dimensions. local_resize.php scales the image so that the maximum dimension is the number given and the aspect ratio stays correct. In other words, if you supply a 150x100 image and specify a size of 50, you will get an image that is 50x33. Ditto, a 100x150 image will be displayed 33x50. Is this an problem?
I'm surprised by the problem you describe in the earlier post - did you remove the complete string from local_links_admin.php, i.e. $vbphrase['ll_trawled'].' '.$dir? The effect you described would happen if you only removed $vbphrase['ll_trawled'].
bhxtyrant
08-01-2005, 08:13 PM
Currently, you cannot give both image dimensions. local_resize.php scales the image so that the maximum dimension is the number given and the aspect ratio stays correct. In other words, if you supply a 150x100 image and specify a size of 50, you will get an image that is 50x33. Ditto, a 100x150 image will be displayed 33x50. Is this an problem?
I'm surprised by the problem you describe in the earlier post - did you remove the complete string from local_links_admin.php, i.e. $vbphrase['ll_trawled'].' '.$dir? The effect you described would happen if you only removed $vbphrase['ll_trawled'].
Ah i see no it's not a problem at all i just wanted to make sure i understood it's size function correct as i wanted to make the thums 130px in width :)
as for the probale yes i did remove the entire string "$vbphrase['ll_trawled'].' '.$dir" after i did it gave me a serious error when i tried to import files.It said it couldnt import but then it gave an error where it said the files were there but they didnt show up in any catagory.I then had to manaualy delete them from the CSV file to get them out :ermm: ive decided this isnt really a big deal i uploaded the original file again and its working right.
just to make sure i undestand you correct you mean edit this code
list ($insert_status, $linkid) = insert_link ($bbuserinfo['username'], $bbuserinfo['userid'], $title, $key, '', $vbphrase['ll_trawled'].' '.$dir, $pcatid, $pforum, $statuscheck, $moderate, 0);
to this
list ($insert_status, $linkid) = insert_link ($bbuserinfo['username'], $bbuserinfo['userid'], $title, $key, '',, $pcatid, $pforum, $statuscheck, $moderate, 0);
Im really more concerned with getting thumbnails working as i plan to add hundreds of video clips to the links database and would like to display a thumb taken from each vid :) im gonna play around with it today so i will post any updates and results in this same message using the edit feature.Thanks a ton for all the help you have given me.
AndrewD
08-02-2005, 04:33 AM
you mean edit this code
list ($insert_status, $linkid) = insert_link ($bbuserinfo['username'], $bbuserinfo['userid'], $title, $key, '', $vbphrase['ll_trawled'].' '.$dir, $pcatid, $pforum, $statuscheck, $moderate, 0);
to this
list ($insert_status, $linkid) = insert_link ($bbuserinfo['username'], $bbuserinfo['userid'], $title, $key, '',, $pcatid, $pforum, $statuscheck, $moderate, 0);
NO!! -
to this
list ($insert_status, $linkid) = insert_link ($bbuserinfo['username'], $bbuserinfo['userid'], $title, $key, '', '', $pcatid, $pforum, $statuscheck, $moderate, 0);
An extra null string.
Im really more concerned with getting thumbnails working as i plan to add hundreds of video clips to the links database and would like to display a thumb taken from each vid :) im gonna play around with it today so i will post any updates and results in this same message using the edit feature.Thanks a ton for all the help you have given me.
This bothers me - it should work ok. Pls do the following:
- create a few links with what you think are correct image files (even if they don't display correctly)
- on the main links display (where you are seeing the red cross), use your browser to do a 'view page source' (Mozilla) or 'view source' (IE). Save the html to file and email it to ad_rodin at noos.fr.
bhxtyrant
08-02-2005, 07:18 AM
Hey man thanks again for all the help.I edited that string of code and its now working perfectly :)
and i dont know about the image but today i decided to reupload the local_resize file (i uninstalled the entire mod and reinstalled) and it started working.I know the server admin just installed something called GD2 for use with VBA gallery for VB as well could that have something to do with why it didnt work?but in any case its working now.
I've said thanks many times now :) but i really aprreciated all you help the last mod i tried to use the dude provided no help what so ever with major serious problems heh.
AndrewD
08-02-2005, 07:24 AM
I know the server admin just installed something called GD2 for use with VBA gallery for VB as well could that have something to do with why it didnt work?.
Yep, that would kill it. I have a trap in the installation code to check that the required code is available - seems this didn't work properly - will check.
Glad you're up and running.
aggiefan
08-03-2005, 12:26 AM
Can downloads be restricted based on usergroups? IE, only super moderators and subscription people can download?
AndrewD
08-03-2005, 03:20 PM
Can downloads be restricted based on usergroups? IE, only super moderators and subscription people can download?
Yes. When you create/edit the link/download and/or the categories of link/download, you can 'associate' them with a forum on your board. When this is done, then the downloads are only visible to/available to users who have permission to view that forum.
By default, this feature is turned off, so that all users can see and access all entries.
yahoooh
08-03-2005, 09:53 PM
i installed it without any error
thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanx
bhxtyrant
08-03-2005, 11:54 PM
Yes. When you create/edit the link/download and/or the categories of link/download, you can 'associate' them with a forum on your board. When this is done, then the downloads are only visible to/available to users who have permission to view that forum.
By default, this feature is turned off, so that all users can see and access all entries.
I have a request for an idea i think would be nice for a future release.I think it would be awsome if you had the option to set user permisions without asociating a catagory with the forums.Reason i say this is because for example i have 4 catagories in the links databse i installed movies,music,games,and scans not i wasnt ed have it where video,music and games are accessable by everyone but i wanted to have scans set to where only a certain user group can access it.But since i dont have a catagory in my forum set up like that its impossible unless i create one if im not mistaken.Would like to here any imput reguarding this :)
ThomasR
08-04-2005, 10:09 AM
HI,
I just install this mod, configure it (user permissions, the hack ones, not based on a forum one, etc..) but impossible to create a new category, I have no option at all.
By the way, I have the admin bar, and when I go on the categories, it display an empty list, with any new option to create something new.
I only have theses options in the bar : Categories, Show, Search, Moderate and Administer
Any clue ?
AndrewD
08-04-2005, 10:40 AM
HI,
I just install this mod, configure it (user permissions, the hack ones, not based on a forum one, etc..) but impossible to create a new category, I have no option at all.
By the way, I have the admin bar, and when I go on the categories, it display an empty list, with any new option to create something new.
I only have theses options in the bar : Categories, Show, Search, Moderate and Administer
Any clue ?
I took a look at your site and the installation looks normal to me. There is a drop down arrow to the right of 'Categories'. If you visit http://yoursite/forums/local_links.php and are logged in with a user id in a group that has 'can_add_category' permission (by default, this is only the administrator group), the drop down menu will include an item 'Add Category'. Slight trick - that item is not visible when you are looking at the Admin page - the drop down menus change depending on where you are and what you are allowed to do.
Let me know if you still have problems - if necessary PM me an account/pwd with admin privs and I'll check.
yahoooh
08-04-2005, 03:23 PM
is there away to use this script 3 times in one forum by change some names of prefex and files in this script because i wanna use it for 3 different service and i do not wanna make them in different categories , ineed to use it 3 times with change also of template names
any help?
Tradjick
08-05-2005, 03:45 AM
Hello Andrew, it´s me again. :squareeyed:
I use your hack as a directory of forum threads. (articles)
So all of the links are links to showthread.php?p=...
It´s having the breadcrump navbar at the top.
When beeing in the thread, it displays "myforums->forumname->threadname"
But i would prefer it beeing:"myforums->links->title"
Do you know any way of doing this?
AndrewD
08-08-2005, 06:58 PM
Hello Andrew, it?s me again. :squareeyed:
I use your hack as a directory of forum threads. (articles)
So all of the links are links to showthread.php?p=...
It?s having the breadcrump navbar at the top.
When beeing in the thread, it displays "myforums->forumname->threadname"
But i would prefer it beeing:"myforums->links->title"
Do you know any way of doing this?
Do you mean the navbar that appears when you click the link to jump to the thread/post? That navbar is built inside the showthread.php code, so U can't see how to change it the way you want without rewriting showthread. Maybe I am not understanding you?
AndrewD
08-08-2005, 07:02 PM
is there away to use this script 3 times in one forum by change some names of prefex and files in this script because i wanna use it for 3 different service and i do not wanna make them in different categories , ineed to use it 3 times with change also of template names
any help?
I think - without trying this - that you could create three copies of each of the files, with different names, e.g. local1_*, local2* and local3_*. You would have to go through the files to change the values of the parameters THIS_TABLE, THIS_SCRIPT, ADMIN_SCRIPT and LINKS_SCRIPT. I'm afraid I don't have time to try this out.
Tradjick
08-08-2005, 07:14 PM
I think you got me wrong. What i meant is the breadcrump template.
In showthread, i would prefer it show the "local_links" path (which in my case has been renamed to "Archiv".
(see at attachments)
sketch42
08-18-2005, 07:39 AM
Great hack... easy to use ... works as advertised
/me clickity clicks install
animehawk
08-24-2005, 01:40 PM
is it possible to make downloads cost points useing the uCash uShop hack?
AndrewD
08-24-2005, 01:45 PM
is it possible to make downloads cost points using the uCash uShop hack?
I imagine that this is straightforward - I asked the uCash people to tell me about the interface, but got no reply. If someone can explain, I'm quite willing to take a look.
Harry72
08-30-2005, 08:37 AM
Thx Andrew.
The best Linklist i've ever seen.
Top programming.
Very fast install. :nervous:
*Klicked install !*
animehawk
08-31-2005, 05:22 PM
I imagine that this is straightforward - I asked the uCash people to tell me about the interface, but got no reply. If someone can explain, I'm quite willing to take a look.
If i knew what you needed I would help. But I'm not much of a coder.
but... if you gave me some info on what you needed then I might be able to help,or if you would like I can grant you access to my forum? Perhaps that would help.
AndrewD
08-31-2005, 05:55 PM
If i knew what you needed I would help. But I'm not much of a coder.
but... if you gave me some info on what you needed then I might be able to help,or if you would like I can grant you access to my forum? Perhaps that would help.
Thanks - I appreciate your offer. It's coding insight I need. I don't have a lot of time and to implement this I would need to know how the UCash code handles credits/debits - it's not something I've used. Sometime, maybe.
animehawk
09-02-2005, 01:54 AM
Thanks - I appreciate your offer. It's coding insight I need. I don't have a lot of time and to implement this I would need to know how the UCash code handles credits/debits - it's not something I've used. Sometime, maybe.
Ok. I'm going to try the Ucash support too. Maybe they can offer some insight about what code it would require. Even if it had to be hard coded. :? I'f they give any help I'll post .
bhxtyrant
09-02-2005, 04:16 AM
hey AndrewD,I'm having a small issue i was hoping you could help me with that i just noticed.A while back i installed your mod in our forums.Everything works perfectly fine except one thing i noticed.
I set my forum permissions to only allow admins and mods to view the files database so guests cant access it and it seems to work fine.however guest can still go into the dropdown menu and click "whats hot" and are able to see files from the catagories that only admins and mods should be able to view.How can i fix this problem?
Our site is currently still under heavy construction and we want to keep our downloads hidden until we officially launch the site so this issue has just been reported by our site admin to me.Thanks as always and i look foward to your reply :D
I think you got me wrong. What i meant is the breadcrump template.
In showthread, i would prefer it show the "local_links" path (which in my case has been renamed to "Archiv".
Hey just was wondering exactly how you changed the name in breadcrumbs to "Archiv"?I wanted to do the same except i wanted mine to be "Downloads".Hope to hear from ya.
AndrewD
09-02-2005, 05:01 AM
hey AndrewD,I'm having a small issue i was hoping you could help me with that i just noticed.A while back i installed your mod in our forums.Everything works perfectly fine except one thing i noticed.
I set my forum permissions to only allow admins and mods to view the files database so guests cant access it and it seems to work fine.however guest can still go into the dropdown menu and click "whats hot" and are able to see files from the catagories that only admins and mods should be able to view.How can i fix this problem?
Our site is currently still under heavy construction and we want to keep our downloads hidden until we officially launch the site so this issue has just been reported by our site admin to me.Thanks as always and i look foward to your reply :D
I'll have to take a look this weekend - the hack locks out all links/cats based on the forums permissions, and the 'whats hot' code does the same check, which seems to work ok on my board.
If you felt like pming me an admin username/password and your forum url, it will be easier for me to check what's going on.
bhxtyrant
09-03-2005, 01:07 AM
HEy again i seem to have gotten it working.It's kinda weird though.I went into the admi panel for Links databae and set the default permissions mask to a forum that is only accessable by admins but it didn't work.So i decided to manually edit my 5 main catagories which contains all the files one by one and set there permission mask to the same forum and it works fine.Perhaps some sort of unseen bug with the admin panel?
Also since the other dude hasnt replied as of yet think you could answer my question in my previous post about changing "links database" in the breadcrumb to "Downloads"?
AndrewD
09-03-2005, 06:05 AM
HEy again i seem to have gotten it working.It's kinda weird though.I went into the admi panel for Links databae and set the default permissions mask to a forum that is only accessable by admins but it didn't work.So i decided to manually edit my 5 main catagories which contains all the files one by one and set there permission mask to the same forum and it works fine.Perhaps some sort of unseen bug with the admin panel?
Also since the other dude hasnt replied as of yet think you could answer my question in my previous post about changing "links database" in the breadcrumb to "Downloads"?
Now I understand...
If you use the admincp to change the 'default forum' *after* you have created links/categories, the permissions for those that already exist do not get reset automatically. You can change them one at a time as you did, or you can go to the admin/categories page, where there is a feature to mass edit the access permissions. The documentation explains this, but I realise that it is probably not what people expect.
Concerning changing the title in the breadcrumb, this feature is available in the VB3.5 version of this hack. I've stopped updating this VB3.0.x code (unless there are serious bugs) - it's too much work to keep the two versions in sync - I'll add the 'default forum perms' to the 'to do' list.
Tradjick
09-04-2005, 06:50 PM
Also since the other dude hasnt replied as of yet think you could answer my question in my previous post about changing "links database" in the breadcrumb to "Downloads"?
It?s in your phrases. Have a look for either "ll_menu_home" or "ll_links_database".
Andrew, as you haven?t replied, i guess it must be quite difficult to do those changes in showthread. I? ll give it a try myself then...
AndrewD
09-05-2005, 04:12 AM
It?s in your phrases. Have a look for either "ll_menu_home" or "ll_links_database".
Andrew, as you haven?t replied, i guess it must be quite difficult to do those changes in showthread. I? ll give it a try myself then...
Tradjik, sorry that I didn't reply.
My time has been given to producing the VB35 version of this code - it has been quite an exercise to make sure that everything works properly - the VB people have written quite a bit of the interface.
This means also that the changes that interest you in showthread will probably be coded in a different way, e.g. as a plugin rather than code change. It may be worthwhile waiting for VB35 to go gold.
Tradjick
09-05-2005, 02:53 PM
Tradjik, sorry that I didn't reply.
My time has been given to producing the VB35 version of this code - it has been quite an exercise to make sure that everything works properly - the VB people have written quite a bit of the interface.
This means also that the changes that interest you in showthread will probably be coded in a different way, e.g. as a plugin rather than code change. It may be worthwhile waiting for VB35 to go gold.
When the system changes so much, i won?t mess around with it yet as vB Gold will be relased in the near future.
Thanks for keeping me informed.
bhxtyrant
09-08-2005, 12:41 AM
It?s in your phrases. Have a look for either "ll_menu_home" or "ll_links_database".
Andrew, as you haven?t replied, i guess it must be quite difficult to do those changes in showthread. I? ll give it a try myself then...
Hey man,thanks for the reply,I gave your suggestion a try but it doesnt seem to work.I changed the phrase for "ll_links_database" which was originally called "Links Database" to "Downloads" but it still shows up as "links database" i even deleted the phrase file completely and uploaded the new modified version and still the same.
digitalSite
09-15-2005, 02:44 AM
I have created subcategories of all 50 states...I would like to copy (or export) these subcategories under another top-level category...is there a way to do this? I would hate to enter all 50 states again manually.
I tried exporting the file and then importing it, but it doesn't look like I can select a top-level category and import in that way.
Any help is greatly appreciated. Thank you.
AndrewD
09-15-2005, 04:19 AM
I have created subcategories of all 50 states...I would like to copy (or export) these subcategories under another top-level category...is there a way to do this? I would hate to enter all 50 states again manually.
I tried exporting the file and then importing it, but it doesn't look like I can select a top-level category and import in that way.
Any help is greatly appreciated. Thank you.
There is no 'mass copy' command available for categories (it is 'copy' you want, not 'move'?), but I'm sure there is an easy way to do this. Let me think about it and get back to you soon.
digitalSite
09-15-2005, 12:36 PM
That's correct, I would like to copy 50 subcategories from Top-level category #1 to Top-level category #2. Thanks :)
AndrewD
09-15-2005, 02:14 PM
That's correct, I would like to copy 50 subcategories from Top-level category #1 to Top-level category #2. Thanks :)
Here you are. Edit lines 27 and 28 of this script to hold the category ids to copy FROM and TO. Upload and run. It will clone all categories that are children of the FROM into TO, leaving the new ones empty.
Probably a good idea to back up your database first. ;) Let me know that it works.
Also a good idea to delete the script when you've run it - otherwise your friendly hackers may decide to keep cloning things for you.
Andrew
digitalSite
09-16-2005, 01:58 AM
Excellent!!!! Worked Like A Charm!!! Thank You!!! :D
(Was wondering...is there a way to import 50 or so links into specific categories? I have about 237 links - half go in one top-level category, and the rest in the other...I really don't know how else to do it but to manually enter each. If you have a soltuion for this I would REALLY appreciate it! THANKS!)
AndrewD
09-16-2005, 04:12 AM
Excellent!!!! Worked Like A Charm!!! Thank You!!! :D
(Was wondering...is there a way to import 50 or so links into specific categories? I have about 237 links - half go in one top-level category, and the rest in the other...I really don't know how else to do it but to manually enter each. If you have a soltuion for this I would REALLY appreciate it! THANKS!)
Why not create a csv file and use the import/export feature, see instructions.txt?
link,link_name,link_url,link_desc,link_catid,link_ forumid
The first field contains the word "link".
link_name, link_url and link_desc are text fields
link_catid and link_forumid are numbers, link_forumid being optional
digitalSite
09-16-2005, 03:22 PM
Thanks for clarifying that for me..I didn't quite understand the instructions. Woohoo! Thank you!
Slave
09-26-2005, 12:08 AM
Hi AndrewD .. :)
I know you're working mainly on the 3.5 version of this hack .. but, due to the amount of hacks I have on my forums, I'm not going to be moving over to 3.5 for, it seems, years ..
Any chance you could add the "new features" you've added to the 3.5 version to this one?
The main one for me would be the "change of styles per cat" feature which I suggested, although the comments feature would be nice too ;)
What do you think?
AndrewD
09-26-2005, 03:26 PM
Hi AndrewD .. :)
I know you're working mainly on the 3.5 version of this hack .. but, due to the amount of hacks I have on my forums, I'm not going to be moving over to 3.5 for, it seems, years ..
Any chance you could add the "new features" you've added to the 3.5 version to this one?
The main one for me would be the "change of styles per cat" feature which I suggested, although the comments feature would be nice too ;)
What do you think?
I'm really sorry, but I cannot spend the time to back-implement these changes - there are so many new features in the 2.x code and I have hardly the time to cope with these.
Slave
09-27-2005, 06:24 AM
I'm really sorry, but I cannot spend the time to back-implement these changes - there are so many new features in the 2.x code and I have hardly the time to cope with these.
:( .. bugger, that's a shame.
Could you at least point me in the direction of how to add the styles per cat feature? .. as that's all I need really.
Thanks :)
AndrewD
09-27-2005, 04:04 PM
:( .. bugger, that's a shame.
Could you at least point me in the direction of how to add the styles per cat feature? .. as that's all I need really.
Thanks :)
I realised why this didn't get implemented with VB version 3.0.x. It's easy enough to modify the hack to prompt the user for a style, but the style change actually happens inside VB's global.php - this is the routine that prepares the ground for everything else, including loading styles. With vb3.5, the new plugin system allows one to implement what you wanted without having to change any standarde code (actually I asked the vb people for a hook to make this possible) - but with vb 3.0, you have to start recoding global.php.
bhxtyrant
10-01-2005, 03:54 AM
Hey AndrewD,
Glad to say i have been using Links & files database without a single problem since my last post.Now i have a little question to ask i can't figure out pertaining to the links_linkbit template.I notice that it uses the Legend and Fieldset CSS but i can not get the fieldset border to change colors.I already added the code into the forums CSS and it works fine on all parts of the forum except in your mod where the default grey color border still shows.Is there a way i can make it match the rest of the forum?The below image will show what i mean.The top portion of the image shows how it looks on the rest of my forums,and the bottom shows how it looks in your hack which is installed on my forum.Thanks as always :)
http://img350.imageshack.us/img350/972/comparison9xf.th.jpg (http://img350.imageshack.us/my.php?image=comparison9xf.jpg)
AndrewD
10-01-2005, 06:14 AM
Hey AndrewD,
Glad to say i have been using Links & files database without a single problem since my last post.Now i have a little question to ask i can't figure out pertaining to the links_linkbit template.I notice that it uses the Legend and Fieldset CSS but i can not get the fieldset border to change colors.I already added the code into the forums CSS and it works fine on all parts of the forum except in your mod where the default grey color border still shows.Is there a way i can make it match the rest of the forum?The below image will show what i mean.The top portion of the image shows how it looks on the rest of my forums,and the bottom shows how it looks in your hack which is installed on my forum.Thanks as always :)
Hi.
I modified my fieldset style definition in the admin.css as follows:
.fieldset { border: #ff0000 solid 1px; margin-bottom: 6px; }
and attach screen shots of the newthread and linkbit displays. Both have picked up the red border correctly.
I wonder - have you applied your fieldset edit to the style that is being used within the links database?
bhxtyrant
10-01-2005, 10:42 AM
Hmm so where can i find the admin.css?and which stylesheet does the links database use exactly?Thanks for your reply.
and yes i believe i did apply it it to the stye being used by links database :) on my forum i only have two skins at the moment.One called "Neo-WU" which is my custom skin that i am using on my forums/links database,and the default forum skin which comes with vB which i have disabled.
AndrewD
10-01-2005, 12:23 PM
Hmm so where can i find the admin.css?and which stylesheet does the links database use exactly?Thanks for your reply.
and yes i believe i did apply it it to the stye being used by links database :) on my forum i only have two skins at the moment.One called "Neo-WU" which is my custom skin that i am using on my forums/links database,and the default forum skin which comes with vB which i have disabled.
Sorry, too much shorthand. By admin.css, I meant the standard VBulletin admincp page, Styles & Templates, Style Manager, Main CSS. I tried to reproduce your problem by changing the definition for fieldset in the Additional CSS Definitions.
In the vb3 version, the links database uses whatever style has been loaded by default.
Maybe if you let me know your style sheet definition, I can try to reproduce the problem here.
bhxtyrant
10-01-2005, 12:45 PM
alright i just took some screen shots of the admin CSS stuff.Here is the images hope they will do :) don't know any other way to show you the CSS.
https://vborg.vbsupport.ru/ (http://img60.imageshack.us/my.php?image=css17sj.jpg)https://vborg.vbsupport.ru/ (http://img60.imageshack.us/my.php?image=css20fj.jpg)https://vborg.vbsupport.ru/ (http://img60.imageshack.us/my.php?image=css39fw.jpg)
Additional CSS-
/* ***** styling for 'big' usernames on postbit etc. ***** */
.bigusername { font-size: 10pt; }
/* ***** small padding on 'thead' elements ***** */
td.thead, div.thead { padding: 4px; }
.postbitinfo {
background-color: #000000;
border-top: 1px ridge #322723;
border-right: 1px ridge #322723;
border-left: 1px ridge #322723;
border-bottom: 1px ridge #322723;
padding-top: 3px;
padding-right: 0px;
padding-left: 3px;
padding-bottom: 3px;
margin-bottom: 3px;
}
/* ***** basic styles for multi-page nav elements */
.pagenav a { text-decoration: none; }
.pagenav td { padding: 2px 4px 2px 4px; }
html {
scrollbar-face-color:#6E5E52;
scrollbar-highlight-color:#453A34;
scrollbar-3dlight-color:#453A34;
scrollbar-darkshadow-color:#453A34;
scrollbar-shadow-color:#453A34;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#000000;}
input {
background-color: #000000;
font-size: 10px;
font-family:Arial, Helvetica, sans-serif;
color:#FFFFFF;
border-color: #362E2A;
border-width: 1 ;)
/* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; border: 1px #322723; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 10px; }
/* ***** don't change the following ***** */
form { display: inline; }
label { cursor: default; }
.normal { font-weight: normal; }
.inlineimg { vertical-align: middle; }
and my CSS for vbulletin_editor.css is as follows
/* the container for the editor */
#vBulletin_editor
{
border: 1px ridge #322723;
}
/* the container for all the edit controls */
#controlbar, .controlbar
{
padding: 2px;
}
/* the WYSIWYG edit area itself */
#htmlbox
{
border: 1px ridge #322723;
font: 10pt verdana;
overflow: auto;
}
/* an individual button */
.imagebutton
{
left: 0px;
top: 0px;
}
/* an individual WYSIWYG color element in the color popup */
.ocolor
{
padding: 2px;
font-size: 1px
}
/* WYSIWYG the part of the color element that gets colored */
.ocolor div
{
width: 10px;
height: 10px;
border: 1px solid #322723;
}
/* WYSIWYG font, size and smilie elements within popups */
.ofont, .osize, .osmilie, .otextlink
{
font: 10px tahoma;
cursor: default;
}
/* style for WYSIWYG font option elements */
.ofont
{
padding: 0px 4px 0px 10px;
font-size: 14px;
height: 20px;
}
/* style for WYSIWYG size option elements */
.osize
{
padding: 0px 4px 0px 4px;
height: 20px;
}
/* the smilie image within a WYSIWYG smilie popup */
.osmilie img
{
vertical-align: middle;
margin: 4px;
}
/* text buttons within popup menus */
.otextlink
{
text-align: center;
margin-top: 4px;
height: 20px;
}
/* the left cell of a WYSIWYG popup menu control */
.popup_feedback
{
font: 11px tahoma;
height: 18px;
padding: 0px 3px 0px 3px;
white-space: nowrap;
overflow: hidden;
}
/* the container window for a WYSIWYG popup menu */
.popupwindow
{
border: 1px solid APPWORKSPACE;
padding: 3px;
position: absolute;
left: 0px;
top: 0px;
z-index: 5;
}
/* the WYSIWYG color popup */
#popup_forecolor
{
padding: 3px;
}
/* the WYSIWYG font popup */
#popup_fontname
{
padding: 1px;
overflow: auto;
overflow-x: hidden;
overflow-y: scroll;
}
/* the WYSIWYG size popup */
#popup_fontsize
{
padding: 1px;
}
/* the WYSIWYG smilie popup */
#popup_smilie
{
padding: 1px;
overflow: auto;
overflow-x: hidden;
overflow-y: scroll;
}
/* the context-notification area for WYSIWYG font and size feedback */
#fontOut, #sizeOut, .popup_feedback div
{
border: 0px solid;
padding: 0px 2px 0px 2px;
cursor: default;
font: 11px tahoma;
overflow: hidden;
}
fieldset { border: 1px solid #322723; }
AndrewD
10-01-2005, 01:00 PM
alright i just took some screen shots of the admin CSS stuff.Here is the images hope they will do :) don't know any other way to show you the CSS.
http://img60.imageshack.us/img60/5416/css17sj.th.jpg (http://img60.imageshack.us/my.php?image=css17sj.jpg)http://img60.imageshack.us/img60/2586/css20fj.th.jpg (http://img60.imageshack.us/my.php?image=css20fj.jpg)http://img60.imageshack.us/img60/6935/css39fw.th.jpg (http://img60.imageshack.us/my.php?image=css39fw.jpg)
Additional CSS-
and my CSS for vbulletin_editor.css is as follows
I think your css definition for .fieldset needs the 'solid' keyword.
ie /* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; border: 1px #322723; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 10px; }
should be /* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; border: 1px solid #322723; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 10px; }
bhxtyrant
10-01-2005, 01:11 PM
I think your css definition for .fieldset needs the 'solid' keyword.
ie /* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; border: 1px #322723; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 10px; }
should be /* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; border: 1px solid #322723; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 10px; }
Already tried this as well :) someone over at vBulletin.com suggested it and it wouldn't work.matter in fact the only way i could get it to work even on the main forums was by adding the fieldset.css to the vbulletin_editor.css file.When i add the fieldset to the additional css options it doesnt seem to have any effect on the forums at all no matter what way i put it in.
I have tried-
".fieldset { margin-bottom: 6px; border: 1px solid #322723; }"
"fieldset { margin-bottom: 6px; border: 1px solid #322723; }"
".fieldset { margin-bottom: 6px; border: 1px #322723; }"
".fieldset { margin-bottom: 6px; border-color: 1px solid #322723; }"
".fieldset { margin-bottom: 6px; border: 0px solid #322723; }"
These were the suggestions i got from vB.com forums as i couldn't get a response here at vB.org :( but i'm just stumped on this.
AndrewD
10-01-2005, 01:18 PM
Already tried this as well :) someone over at vBulletin.com suggested it and it wouldn't work.matter in fact the only way i could get it to work even on the main forums was by adding the fieldset.css to the vbulletin_editor.css file.When i add the fieldset to the additional css options it doesnt seem to have any effect on the forums at all no matter what way i put it in.
I have tried-
".fieldset { margin-bottom: 6px; border: 1px solid #322723; }"
"fieldset { margin-bottom: 6px; border: 1px solid #322723; }"
".fieldset { margin-bottom: 6px; border: 1px #322723; }"
".fieldset { margin-bottom: 6px; border-color: 1px solid #322723; }"
".fieldset { margin-bottom: 6px; border: 0px solid #322723; }"
These were the suggestions i got from vB.com forums as i couldn't get a response here at vB.org :( but i'm just stumped on this.
Maybe the best way to solve this is to look at a dump of the browser display. Is your site live? Or just go to local_links.php, do a view source, save it and email it to me at ad_rodin at noos.fr Make sure that you turn off 'Store CSS Stylesheets as Files?' on the admincp
bhxtyrant
10-01-2005, 01:23 PM
Alright i will do that in a moment.Thanks alot for all your support :) i just want to get that white border out of there.Just looks so ugly and doesn't match the rest of the site/forums.I know if worse came to worse i could edit the source code a remove the <fieldset> options but i really would prefer to fix it rather then work around it,Don't want to do anything that may cause trouble in the future.
If you mean is my site online then yes it is but it's not avalible to any public yet.I am a part of a team and the main admin is the only one who can turn it on/off.And "Store CSS as files" is turned off as well.
:EDIT:E-mail is sent.Let me know if it comes through not sure if i got the e-mail address correct.
AndrewD
10-01-2005, 01:49 PM
Alright i will do that in a moment.Thanks alot for all your support :) i just want to get that white border out of there.Just looks so ugly and doesn't match the rest of the site/forums.I know if worse came to worse i could edit the source code a remove the <fieldset> options but i really would prefer to fix it rather then work around it,Don't want to do anything that may cause trouble in the future.
If you mean is my site online then yes it is but it's not avalible to any public yet.I am a part of a team and the main admin is the only one who can turn it on/off.And "Store CSS as files" is turned off as well.
:EDIT:E-mail is sent.Let me know if it comes through not sure if i got the e-mail address correct.
Got it. Your css definition for fieldset is immediately after a definition for input:
input {
background-color: #000000;
font-size: 10px;
font-family:Arial, Helvetica, sans-serif;
color:#FFFFFF;
border-color: #362E2A;
border-width: 1 ;)
/* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; border: 1px solid #322723; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 10px; }
And you've ended the input definition with a closing parenthesis rather than brace.
Magic!
bhxtyrant
10-01-2005, 01:58 PM
Oh man!I can't believe i didn't see that.Thanks :D it's working now.
by the way quick question.I was wondering if you plan to impliment options for permissions into your mod :) i know you have it where the links database uses permissions from a selected forum but will there ever be stand alone permissions?
kinda like this? http://www.busepa.de/pics/dl.jpg
AndrewD
10-01-2005, 02:03 PM
by the way quick question.I was wondering if you plan to impliment options for permissions into your mod :) i know you have it where the links database uses permissions from a selected forum but will there ever be stand alone permissions?
I've wondered about that a number of times - because people have had more difficulty understanding the forum-based permissions than anything else. It's not high on my priorities, as the forum approach works very well for our own purposes and anything else would require a full rewrite.
However --- in the VB35 version, I have added an extra permission 'can_access_links' which sits on top of the whole system and is per-usergroup. Using this, you can turn on/off access to all links for some user groups.
bhxtyrant
10-01-2005, 02:10 PM
I've wondered about that a number of times - because people have had more difficulty understanding the forum-based permissions than anything else. It's not high on my priorities, as the forum approach works very well for our own purposes and anything else would require a full rewrite.
However --- in the VB35 version, I have added an extra permission 'can_access_links' which sits on top of the whole system and is per-usergroup. Using this, you can turn on/off access to all links for some user groups.
Ah i see,That sounds exactly like what i've been waiting for :) Will it be catagory based?for example if i have catagory 1 and catagory 2.I can set #1 to not allow guest usergroup to not view,and in #2 guest usergroup can view?
i have tried many types of link managers and so far yours is the best i have come across.The forum-based permissions took a bit of getting used to because alot of our forums allow everyone to view.Looks like i will be upgrading to vB 3.5.0 soon.Been holding off to wait for it to reach it's final build.
AndrewD
10-01-2005, 03:59 PM
Ah i see,That sounds exactly like what i've been waiting for :) Will it be catagory based?for example if i have catagory 1 and catagory 2.I can set #1 to not allow guest usergroup to not view,and in #2 guest usergroup can view?
i have tried many types of link managers and so far yours is the best i have come across.The forum-based permissions took a bit of getting used to because alot of our forums allow everyone to view.Looks like i will be upgrading to vB 3.5.0 soon.Been holding off to wait for it to reach it's final build.
No, that's the point - the additional setting is all or nothing.
But the easy way to use the forum-based permissions is simply to create a few extra forums to which you give the required different group permissions, then assign category 1 to the first, category 2 to the second, etc.
NuclioN
11-03-2005, 08:00 AM
-- edit -- wrong forum sorry
Flow Fusion
11-10-2005, 11:29 AM
3.5?
AndrewD
11-11-2005, 09:46 AM
3.5?
Pardon?
ChuanSE
12-08-2005, 02:33 AM
so, what is the latest version of this hack for vB 3.X.X and are the install instructions bugfree now? ;)
seems like an awsome addition, but i'm not sure if it's safe to install :p
Boofo
12-08-2005, 04:51 AM
so, what is the latest version of this hack for vB 3.X.X and are the install instructions bugfree now? ;)
seems like an awsome addition, but i'm not sure if it's safe to install :p
Long time, no talk, my friend. ;)
You are perfectly safe to use this. I use the 3.5 version and wouldn't be without it. ;)
ChuanSE
12-09-2005, 12:44 PM
Heya Boofo mate,
long time not seen allright. But i'm back in town ;)
I'll swing by the bearfacts board sometime again hu :)
simonsiegel
02-15-2006, 09:02 PM
Thanks so much for this, it's great.
I've one question though:
Is there anyway to change the title "Links and Download Manager" this is after I click the links button on the header?
Thank so much
AndrewD
02-16-2006, 03:55 AM
Thanks so much for this, it's great.
I've one question though:
Is there anyway to change the title "Links and Download Manager" this is after I click the links button on the header?
Thank so much
Hello - have you posted this in the right place? Are you using VBulletin 3.0 or 3.5? campusforum seems to be using version 3.5.3.
With the version of LDM that runs on vb 3.5, the title "Links and Download Manager" can be changed on the LDM admin/settings page, in General Settings, database_name
aussiev8
03-30-2006, 10:45 AM
i'm following the install instruction, everything has been uploaded as requested, but when i try run the install file i get
nstall/Upgrade Links and Files 1.60
Checking installation status...
Fatal error: Call to a member function on a non-object in /****/local_links_install.php on line 187
AndrewD
03-30-2006, 12:25 PM
i'm following the install instruction, everything has been uploaded as requested, but when i try run the install file i get
Are you trying to install this on a VB 3.5x board? This version is strictly 3.0 only
yahoooh
05-07-2006, 03:18 PM
how to add 300 files at once by monitoring links in local folder
when i use scan folder and i try to write url of it or address of local folder in my server it also give unable to open
i give permission 777 and still this is not work
example:
http://www.mysite.com/folder
or
home/myaccount/public_html/folder
it give me unable to open
any help plz
thanks
AndrewD
05-07-2006, 05:45 PM
how to add 300 files at once by monitoring links in local folder
when i use scan folder and i try to write url of it or address of local folder in my server it also give unable to open
i give permission 777 and still this is not work
example:
http://www.mysite.com/folder
or
home/myaccount/public_html/folder
it give me unable to open
any help plz
thanks
Question : Which version of LDM are you using? Let me assume that you are using 2.2.0.
Question : I take it from your example that the folder you want to monitor is in your web site directory tree?
So:
LDM/admin/settings -> local_file_root: off, i.e. no
LDM/admin/settings -> local_file_root_prefix: blank
Then:
LDM/admin/categories -> choose category of interest, then scan
Use pull down menu to walk through the directory tree unjtil you reach the dircetory of interest
It's more difficult with earlier versions of LDM, so I recommend upgrading
yahoooh
05-10-2006, 01:18 PM
is there upgraded script for 3.0.7?
because i still use it
and i need small help
i enter links with 3gp extension
i need them to be dwnloaded as file to visito and he will choose he folder in his PC to downloaded in it
i added 3gp as extension in attachement
butr when user click link he will open it with realplayer or any program open ot or opened in temporary folder
so is there any hack or instruction to make it downloaded as file and the user choose the folder to download it ?
thanks
AndrewD
05-10-2006, 05:13 PM
is there upgraded script for 3.0.7?
because i still use it
and i need small help
i enter links with 3gp extension
i need them to be dwnloaded as file to visito and he will choose he folder in his PC to downloaded in it
i added 3gp as extension in attachement
butr when user click link he will open it with realplayer or any program open ot or opened in temporary folder
so is there any hack or instruction to make it downloaded as file and the user choose the folder to download it ?
thanks
I'm sorry, I can not support this version any longer. It's nearly a year since the change to VB3.5 and a great deal of work has gone into the new version.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.