vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

rfairbairn 09-27-2005 06:33 PM

Can a form be created to allow users to add links, but not going into too much detail as the add link form currently does, i.e. just a description, url and name of site ? no other settings, they would be added on moderation?

elsupremo 09-28-2005 05:27 AM

Andrew - here is the includes file I Pm'd you about. I know it's sloppy and I don't know what I'm doing, but here it is anyways. :)

For anyone else who's curious, I am adding a lot of .jpg's to my site using the "Scan" function, and I wanted the hack to automatically create a thumbnail whenever I added a .jpg. Andrew was going to do it, but I decided to try it myself. It is expandable to other file types by modifying the preg_match string pattern.

AndrewD 09-28-2005 06:42 PM

Quote:

Originally Posted by rfairbairn
Can a form be created to allow users to add links, but not going into too much detail as the add link form currently does, i.e. just a description, url and name of site ? no other settings, they would be added on moderation?

To do this, you would edit the link_addnewlink template. Surround the fields that you want to have as optional with a test
Code:

<if condition="$linkmod">..</if>
. You would have to add a hidden input field to provide the initial default value for the missing fields, although this can be blank for everything except the category - which would need to have an acceptable value.

Meltingfire 09-29-2005 02:17 PM

Why did all my dates get set with todays date when upgrading?

Now everything is f*ckedup in "latest links"...

AndrewD 09-29-2005 05:04 PM

Quote:

Originally Posted by Meltingfire
Why did all my dates get set with todays date when upgrading?

Now everything is f*ckedup in "latest links"...

Maybe if you gave me more information and less expletive, I could work out the answer.

dethfire 09-29-2005 05:12 PM

any way to import the 3.0 links into this new 3.5 links hack?

Vizionz 09-29-2005 05:19 PM

why is there so many damn files included and its so unorganized i couldnt even figure out what is what to try to install this

Vizionz 09-29-2005 05:33 PM

where does it install the database tables ? i ran the product after uploading all the files and now it says its missing a table in the database

AndrewD 09-29-2005 05:56 PM

Quote:

Originally Posted by dethfire
any way to import the 3.0 links into this new 3.5 links hack?

The installation script should smoothly upgrade you from the 3.0 version to the 3.5 version. Just follow the instructions.

AndrewD 09-29-2005 05:57 PM

Quote:

Originally Posted by Vizionz
why is there so many damn files included and its so unorganized i couldnt even figure out what is what to try to install this

Actually, the files are extremely organised, and if you read the instructions.txt, it tells you precisely what to do.

There are so many files because during the last year, people have asked for so many options.

AndrewD 09-29-2005 05:59 PM

Quote:

Originally Posted by Vizionz
where does it install the database tables ? i ran the product after uploading all the files and now it says its missing a table in the database

It installs the database tables during the product installation process. Which table is it telling you is missing. I can't help if you don't give sufficient information.

AndrewD 09-29-2005 06:00 PM

Quote:

Originally Posted by elsupremo
Andrew - here is the includes file I Pm'd you about. I know it's sloppy and I don't know what I'm doing, but here it is anyways. :)

For anyone else who's curious, I am adding a lot of .jpg's to my site using the "Scan" function, and I wanted the hack to automatically create a thumbnail whenever I added a .jpg. Andrew was going to do it, but I decided to try it myself. It is expandable to other file types by modifying the preg_match string pattern.

Thanks, I'll take a look when I have some free time, and see how to incorporate this into the standard release.

Vizionz 09-29-2005 06:04 PM

Quote:

Originally Posted by AndrewD
It installs the database tables during the product installation process. Which table is it telling you is missing. I can't help if you don't give sufficient information.

MySQL Error : Table 'AsylumGold.linksadmin' doesn't exist
Error Number : 1146

it might be i am doing something wrong

AndrewD 09-29-2005 06:34 PM

Quote:

Originally Posted by Vizionz
MySQL Error : Table 'AsylumGold.linksadmin' doesn't exist
Error Number : 1146

it might be i am doing something wrong

OK - did you run the VBulletin product installer (VB/admincp/plugin system) as per the instructions?

If you did - and if it seemed to run ok - send me a pm with details of your forum url, plus an admin account and pwd, and I'll gladly take a look

gyankow 09-29-2005 06:51 PM

Is there a 3.5 gold release on the way?

Meltingfire 09-29-2005 08:49 PM

Quote:

Originally Posted by AndrewD
Maybe if you gave me more information and less expletive, I could work out the answer.

Upgraded to vBulletin 3.5.0 and L & D Manager 2.0.4 earlier and all dates on files/links (linkdate) are changed like they were "NOW()":ed or something.

I dont see why this happend really and now all "order by date desc" that is my default is just crazy and same thing on vBadvanced where i use a module showing newest files/links.

PtP 09-29-2005 08:52 PM

2.04 is working perfectly for me under 3.5 gold ;)

AndrewD 09-30-2005 04:20 AM

Quote:

Originally Posted by gyankow
Is there a 3.5 gold release on the way?

Yes, version 2.0.4 should work fine. 2.0.5 (beta testing) has some fixes and enhancements, and should go live this weekend.

AndrewD 09-30-2005 04:34 AM

Quote:

Originally Posted by Meltingfire
Upgraded to vBulletin 3.5.0 and L & D Manager 2.0.4 earlier and all dates on files/links (linkdate) are changed like they were "NOW()":ed or something.

I dont see why this happend really and now all "order by date desc" that is my default is just crazy and same thing on vBadvanced where i use a module showing newest files/links.


I took a look at your site, and don't understand - linkdates seem ok to me - you've got five files uploaded two days ago and the rest earlier. This is the link I used to check

http://forum.directconnect.se/links....mit=250&sort=d

Am I looking at the wrong place?

Meltingfire 09-30-2005 10:29 PM

Quote:

Originally Posted by AndrewD
I took a look at your site, and don't understand - linkdates seem ok to me - you've got five files uploaded two days ago and the rest earlier. This is the link I used to check

http://forum.directconnect.se/links....mit=250&sort=d

Am I looking at the wrong place?

http://forum.directconnect.se/links....&page=1&sort=d

How can 23/02/2004 be before 16/07/2005 ?

Why doesnt the file with 16/07/2005 show up at Whats new when files from 22/05/2005 are shown? http://forum.directconnect.se/links....links&catid=-8

Is it me beeing drunk or is the date-stamps wrong?

Edit: I see now that the timestamp for when it was posted is updated when you Edit a file, dont think that is necessary or is it?

AndrewD 10-01-2005 05:00 AM

Quote:

Originally Posted by Meltingfire
Edit: I see now that the timestamp for when it was posted is updated when you Edit a file, dont think that is necessary or is it?

This was a point of discussion way back, when the general view was that the date stamp should be updated when the entry was edited. I don't feel strongly one way or the other.

Easiest solution is to add an additional configuration parameter so that the code does or does not make this adjustment during an edit.

Meltingfire 10-01-2005 05:14 AM

Quote:

Originally Posted by AndrewD
This was a point of discussion way back, when the general view was that the date stamp should be updated when the entry was edited. I don't feel strongly one way or the other.

Easiest solution is to add an additional configuration parameter so that the code does or does not make this adjustment during an edit.

Best case whould be to see the date in a text-field with the "current (first)" date, then you could either change it manually, or have a radiobutton/checkbox to choose "Set to todays date"

or maybe even to fields, one for added date and one for last edited...

AndrewD 10-01-2005 05:27 AM

Quote:

Originally Posted by Meltingfire
Best case whould be to see the date in a text-field with the "current (first)" date, then you could either change it manually, or have a radiobutton/checkbox to choose "Set to todays date"

or maybe even to fields, one for added date and one for last edited...

OK, will ponder. Thanks

AndrewD 10-01-2005 10:11 AM

I have uploaded version 2.0.5 as the new supported release, tested with VB 3.5.0 Gold. This has some minor changes to the beta version uploaded a few days ago.

Grateful for reports, as always.

Changes from 2.0.4 (those marked * are changes from beta 2.0.5):

+ rating/comments system extended to allow users to make multiple comments (one rating)
+ option included to update existing permissions when *default_forumid* is changed on admin page
+ users with *can_set_display_order* permission see the display orders in the linkbit
+ category forum links to work both ways category<=>forum
+ 'advanced search' added, e.g. to limit searches to certain categories
* option in edit link to retain or update the original timestamp
+ interface provided for vbAdvanced 2.0
= layout of category home page modified to provide better overview
= admin/settings and admin/permissions split into two pages
= various bugs fixed
changes to default sort order work properly
another attempt to deal correctly with changes to category forum links
another attempt to deal correctly with category display orders
cached missing template (styleselect)
phrasing tidied up
- removed support for obsolete vbindex interface

PtP 10-01-2005 11:49 AM

In the vbAdvanced modules the header of the module has an incorect link to local_links.php, look below to fix.


ldm-new.php
Line 91

change this

Code:

$hottitle = '<a href="'.$vbulletin->options['homeurl'].'/'.LINKS_SCRIPT.'.php">'.'New Links'.'</a>';
to this

Code:

$hottitle = '<a href="'.$vbulletin->options['bburl'].'/'.LINKS_SCRIPT.'.php">'.'New Links'.'</a>';
================================================== ========================

ldm-hot.php

Line 91

change this

Code:

$hottitle = '<a href="'.$vbulletin->options['homeurl'].'/'.LINKS_SCRIPT.'.php">'.'Hot Links'.'</a>';
to this

Code:

$hottitle = '<a href="'.$vbulletin->options['bburl'].'/'.LINKS_SCRIPT.'.php">'.'Hot Links'.'</a>';


Also was there a reason you changed the links_hotlinks template in your 2.05 beta to this version

From this

Code:

<tr>
<td class="alt1"><span class="smallfont">
<a href="$vboptions[bburl]/local_links.php?action=jump&amp;id=$linkid" target="_blank">$linkname</a>
</span>
</td>
<td class="alt2">
<span class="smallfont">$linkhits</span>
</td>
</tr>

To this

Code:

<a href="$vboptions[bburl]/local_links.php?action=jump&amp;id=$linkid" target="_blank">$linkname</a> ($linkhits)<br />
As it makes the vbAdvanced module look very bland and boring.

AndrewD 10-01-2005 12:27 PM

Quote:

Originally Posted by PtP
In the vbAdvanced modules the header of the module has an incorect link to local_links.php, look below to fix.

thanks

Quote:

Also was there a reason you changed the links_hotlinks template in your 2.05 beta to this version as it makes the vbAdvanced module look very bland and boring.
I thought it was an improvement ;) - but as I don't use vbAdvanced (yet) I'm not really the best judge.

Will revert to the beta layout if you think this is better.

PtP 10-01-2005 01:01 PM

I started to wonder if I was just being opinionated in my comment of the template, I have attached the old (beta template) and the new template for your own opinion, I honestly think the old beta one looks classier. See what you think.

AndrewD 10-01-2005 01:06 PM

Quote:

Originally Posted by PtP
I started to wonder if I was just being opinionated in my comment of the template, I have attached the old (beta template) and the new template for your own opinion, I honestly think the old beta one looks classier. See what you think.

I think what was bugging me about the first try was 'too much line spacing' - I switched over to putting everything in one table row, with line breaks. I agree with you that the two-column style is better than the one column parenthesised version, but still wonder about the table length. What do you think?

Meltingfire 10-01-2005 03:26 PM

Quote:

Originally Posted by AndrewD
I think what was bugging me about the first try was 'too much line spacing' - I switched over to putting everything in one table row, with line breaks. I agree with you that the two-column style is better than the one column parenthesised version, but still wonder about the table length. What do you think?

How do you successfully upgrade?
Is the uninstall/install better or should i use install and use overwrite / no overwrite?

AndrewD 10-01-2005 04:03 PM

Quote:

Originally Posted by Meltingfire
How do you successfully upgrade?
Is the uninstall/install better or should i use install and use overwrite / no overwrite?

Either approach will work, - install/overwrite or uninstall/reinstall - the uninstall does not harm the LDM database tables.

The only tricky situation with the new VB system is when an install only partly completes, and VB thinks it has finished the job. This is because installation code is only executed when the VB installer thinks it is installing a higher version. So if , e.g. (for any reason) you have part-installed version 2.0.5, then to complete the job you have to uninstall and start again.

Boofo 10-01-2005 04:06 PM

Quote:

Originally Posted by AndrewD
Either approach will work, - install/overwrite or uninstall/reinstall - the uninstall does not harm the LDM database tables.

The only tricky situation with the new VB system is when an install only partly completes, and VB thinks it has finished the job. This is because installation code is only executed when the VB installer thinks it is installing a higher version. So if , e.g. (for any reason) you have part-installed version 2.0.5, then to complete the job you have to uninstall and start again.

As we found out during the beta phase of 2.0.5. ;)

AndrewD 10-01-2005 04:08 PM

Quote:

Originally Posted by Boofo
As we found out during the beta phase of 2.0.5. ;)

Don't be too sarcastic or you may find an unexpected worm in the next release ;););)

Boofo 10-01-2005 04:11 PM

Quote:

Originally Posted by AndrewD
Don't be too sarcastic or you may find an unexpected worm in the next release ;););)

LOL I wasn't being sarcastic, actually. But now that you mention it ... ;)

Meltingfire 10-01-2005 04:14 PM

Quote:

Originally Posted by AndrewD
Don't be too sarcastic or you may find an unexpected worm in the next release ;););)

I have created a own module i call "ldm-hotcat.php" that is basicly a hot category.
Since i use the category as a filename, lets say "miranda" and then post a link for each version "miranda 1.0", "miranda 2.0" etc i want all hits to be collected together inside that category so i use the following code as SQL, other then that there is no changes made to the original "ldm-hot.php"

PHP Code:

        SELECT cat.catid AS linkidcat.catname AS linknamecat.catdesc AS linkdesc
            
SUM(link.linkhits) AS linkhitslink.linkstatus AS linkstatus
        FROM 
".THIS_TABLE."linksltoc AS ltoc         
        LEFT JOIN 
".THIS_TABLE."linkslink AS link 
            ON ltoc
.linkid link.linkid 
        LEFT JOIN 
".THIS_TABLE."linkscat as cat 
            ON ltoc
.catid cat.catid
        GROUP BY cat
.catid

            $order
        LIMIT $linksee 

The problem is that when i use the $filter i get a SQL error, cant see why...

if the filter is "WHERE link.linkmoderate = 0" it gives a error which it shouldnt, or am i just blind

Meltingfire 10-01-2005 04:21 PM

Quote:

Originally Posted by PtP
I started to wonder if I was just being opinionated in my comment of the template, I have attached the old (beta template) and the new template for your own opinion, I honestly think the old beta one looks classier. See what you think.

Since i see that you have a small empty row on top, here is a fix for you, i also added the linkstatus-thingie that was used in older LDM but not in this 3.5, how come?

well here is the code for links_hotlinks if you want a 2 column module, and also dont forget to edit module to use 2 in colspan.

PHP Code:

<if condition="$linkstatus==1">
<
a href="$vboptions[bburl]/local_links.php?action=jump&amp;id=$linkid">$linkname</a>
</if>
<if 
condition="$linkstatus>1">
<
a href="$vboptions[bburl]/local_links.php?action=jump&amp;id=$linkid">$linkname</a</if>
<if 
condition="$linkstatus<=0">
$linkname (n/a)
</if>
</
span>
</
td>
<
td class="alt2">
<
span class="smallfont">[$linkhits]</span>
</
td>
</
tr>
<if 
condition="$nhits<4">
<
tr>
<
td class="alt1"><span class="smallfont">
</if> 

the part with <if condition="$nhits<4"> should be changes if you have 10 rows then it should be 9, and so on...

EDIT:
i dont know what the intension was of using a both linkstatus==1 and linkstatus>1 but i guess it has to do that at one of them you can also show filesize if i recall right.

Meltingfire 10-01-2005 04:31 PM

Im on fire tonight! :P
Sorry for trippleposting but i want to keep each feature/bug in a new post.

Shouldnt ldp-new.php use the current link instead to show "Whats New" when you click on the header.
$hottitle = '<a href="'.$vbulletin->options['bburl'].'/'.LINKS_SCRIPT.'.php?action=links&catid=-8">'.'New files'.'</a>';

Meltingfire 10-01-2005 05:06 PM

After debugging and editing for half an hour this is my last feedback for today.

It is impossible to run both new and hot at the same time, probably because they use same variablenams etc.

What i had to do was to rename everything with "hot" in ldm-new.php to "new", after that i duplicated one styles for each "links_hotlinks" and "links_newlinks", and also "adv_portal_custom_ldm_hot" and "adv_portal_custom_ldm_new".

I removed the <tr><td><span> $hotlinks </span></td></tr> part from the "adv_portal_custom_ldm_hot" since i wanted to use more then one colulmn and or row per file, and added the part with <tr><td><span> <a href> ... </a></span></td></tr> in "links_hotlinks" instead. Did same thing for the "_new"-versions.

This also removes the need to use $hottitle, $collapseobj_custom_ldm and $collapseimg_custom_ldm, since they can now be set in the template instead.

This is my $0.05, now its saturday night here and time to party! :P

AndrewD 10-01-2005 05:08 PM

Quote:

Originally Posted by Meltingfire
Im on fire tonight! :P
Sorry for trippleposting but i want to keep each feature/bug in a new post.

Shouldnt ldp-new.php use the current link instead to show "Whats New" when you click on the header.
$hottitle = '<a href="'.$vbulletin->options['bburl'].'/'.LINKS_SCRIPT.'.php?action=links&catid=-8">'.'New files'.'</a>';

I think that's right - ditto What's hot?

AndrewD 10-01-2005 05:10 PM

Quote:

Originally Posted by Meltingfire
After debugging and editing for half an hour this is my last feedback for today.

It is impossible to run both new and hot at the same time, probably because they use same variablenams etc.

What i had to do was to rename everything with "hot" in ldm-new.php to "new", after that i duplicated one styles for each "links_hotlinks" and "links_newlinks", and also "adv_portal_custom_ldm_hot" and "adv_portal_custom_ldm_new".

I removed the <tr><td><span> $hotlinks </span></td></tr> part from the "adv_portal_custom_ldm_hot" since i wanted to use more then one colulmn and or row per file, and added the part with <tr><td><span> <a href> ... </a></span></td></tr> in "links_hotlinks" instead. Did same thing for the "_new"-versions.

This also removes the need to use $hottitle, $collapseobj_custom_ldm and $collapseimg_custom_ldm, since they can now be set in the template instead.

This is my $0.05, now its saturday night here and time to party! :P

Greatly appreciated - as I've said elsewhere, I don't use vbAdvaced, so have had to work a bit in the dark - will try to pull these things together soon.

Your easrlier equstion about $linkstatus = 1 or >1 - the variable is positive if the link is good, and >1 if it should be treated as a file size - maybe I should have used two variables but I was a bit lazy at one point

Meltingfire 10-01-2005 05:18 PM

Quote:

Originally Posted by AndrewD
Greatly appreciated - as I've said elsewhere, I don't use vbAdvaced, so have had to work a bit in the dark - will try to pull these things together soon.

Your easrlier equstion about $linkstatus = 1 or >1 - the variable is positive if the link is good, and >1 if it should be treated as a file size - maybe I should have used two variables but I was a bit lazy at one point

Also, adding a phrase for "local_links.php" would be appreciated so you can translade it to for example "links.php", so i dont have to word-replace all urls in styles after a upgrade ;) even if that only takes 2 seconds.

Maybe not the best solution but would work and phrases wouldnt be changed after an upgrade as styles do.


All times are GMT. The time now is 06:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03545 seconds
  • Memory Usage 1,885KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete