vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links and Files Database (https://vborg.vbsupport.ru/showthread.php?t=60403)

AndrewD 04-10-2005 07:08 PM

Quote:

Originally Posted by RichieBoy67
Thanks Andrew... That worked :)

I was wondering... is there a scheduled task or something that makes it scan the site??? I might have missed something in the settings...

Thanks again


skip that.... I found it but it is finding no links.... I must have something wrong...lol

NO, there isn't a scheduled task - I thought about this once, but never finished it. One problem with scheduled tasks is that you have to make sure that they don't go haywire if the job gets too big.

RichieBoy67 04-10-2005 08:34 PM

Yeah, I found out where you click on scan but it is finding nothing..... where it said diectory to scan I put /* and it got nothing??

AndrewD 04-11-2005 04:30 AM

Quote:

Originally Posted by RichieBoy67
Yeah, I found out where you click on scan but it is finding nothing..... where it said diectory to scan I put /* and it got nothing??

I'm getting a little confused - and maybe there's something else I hadn't explained.

- The directory scan only presents you with the option of selecting file that have mimetypes recognised by VBulletin - have a look at the top of the links and files admin page / settings and permissions. Not sure what this is on a clean install of Vbulletin - something like gif, jpeg, doc, etc

- The first time you carry out a scan on a directory, the listing should include all the files it finds, with three columns offering select, ignore and omit. The ones that you 'select' are inserted as downloadable links into the specified category. The ones that you 'ignore' are registered in a file 'ignore.txt' in the web directory, so that they will not be presented to you again the next time you run a scan on the same directory. The ones you 'omit' are ignored this time only.

- The next time you scan the same directory, the listing will *only* include files that are either a) new or b) were 'omitted' the previous time. It does not show the ones that you 'selected' or 'ignored'

If you're having problems with /*, try it first on a directory where you know there are files of interest, e.g. put a jpeg file into a directory and use the scan to look for it.

RichieBoy67 04-11-2005 11:42 AM

No problem.....

I really don't even need that specific feature anyways. I am happy just adding links and downloads :)

Sometime when I have time I'll mess around more with it...... Great Hack... and thanks for the support :)

Rich

Slave 04-12-2005 03:28 PM

AndrewD .. a suggestion .. :)

When you go to add a link does it check to see if it's already in the database? .. if not could there be a check put into the add link page to flag this up (with a link to the link edit page incase you want to add it to another cat)

AndrewD 04-12-2005 03:34 PM

Quote:

Originally Posted by Slave
AndrewD .. a suggestion .. :)

When you go to add a link does it check to see if it's already in the database? .. if not could there be a check put into the add link page to flag this up (with a link to the link edit page incase you want to add it to another cat)

There's no check at that stage, but there is a check for duplicates in the admin page.

Thanks Slave, I'll think about this - seems a good idea. I'm getting a bit worried as the code is reaching the stage of being too complicated to test properly before each release. Need to make sure I don't keep breaking things.

Slave 04-12-2005 06:04 PM

k .. no problem ..

I'm happy to be a ginni pig pig if you'd like :)

RichieBoy67 04-13-2005 03:50 PM

Easy one....

Sorry if this was covered already...

I have been looking for desc limit so I can change the amount of links listed before a new page starts but I cannot find it....

Where is this?????

Thanks

AndrewD 04-13-2005 08:01 PM

Quote:

Originally Posted by RichieBoy67
Easy one....

Sorry if this was covered already...

I have been looking for desc limit so I can change the amount of links listed before a new page starts but I cannot find it....


Where is this?????

Thanks

There are three levels of control.

On the links admin page, if you set *links_per_page* option to a value>0, this applies to everyone in every case.

If you leave this set at 0, then the code picks up in this order:

a) The value the user has set for Number of Posts to Show Per Page on his UserCP
or
b) Maximum displayed posts vefore page split from the main admincp/thread display options

reitube 04-15-2005 03:04 PM

Hi folks,

I know, there are several posts for this issue. I just want to put an easy one, too.

I took the rating images from vbulletin ( images/rating...) and flipped it, cause there right aligned. I used "irfanview" (Flip Horizontal Function).
The images called "rating_left_<number>.gif".

Then I changed the links_ratebit like this:

Change it from:
HTML Code:

<br /><span class="smallfont">rated <b>$linkrate</b> Stars <if condition="$links_permissions[can_admin_links]"> <a href="local_links.php?action=doratelink&amp;vote=-1&amp;id=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber">clear</a></if></span>
To:
HTML Code:

<span class="smallfont"><img class="inlineimg" src="images/rating/rating_left_$linkrate.gif" /><if condition="$links_permissions[can_admin_links]"> <a href="local_links.php?action=doratelink&amp;vote=-1&amp;id=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber">clear</a></if></span>

That does all what I want.
Regards

P.S Don't hit me if it has been posted already... :knockedout:


All times are GMT. The time now is 03:38 PM.

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.02248 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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