![]() |
Do you know around when this hack is gonna get a final version released?
|
Quote:
I plan to move this to the full release forum either this weekend or next, and call it version 1.0. There will be no further new functionality, apart from a slight tidying up, and I shall include Natch's integration with VBIndex for those who want it. There is a wish list - particularly moderation and mass import/export of links, which will be done sometime. OK? |
Sounds good, lol hopefully it's this weekend. This is a hack ive been requesting..etc for a while now since vb3 has been out.
|
I added a space between the description and the 'added' info. Makes it a bit more readable.
in template links_linkbit: change PHP Code:
PHP Code:
EDIT: this only inserts a space if you have no description. How can we get a space between the description and the 'added' text when there is a description entered? (other than putting a hard return in each description box when entering links) |
Quote:
|
Before I install this I gotta few questions that I wanna clear up... you can put permissions on the link itself right? rather than sticking the link somewhere on the forum and setting certain permissions to the view of the page. I remember vbportal had a downloads page and they could specify permissions on the files rather than just the page. So that's what im wondering about this, and if it does, does it have a file size limit? Cause i know when you cant add big files on VB attachments cause of the mysql limits..etc
|
Quote:
|
but that wouldnt really protect the file, cause then people could just give out links still
|
Quote:
a) Ability to "do" certain things. You set this in the admin pages, by defining which usergroups can create links, categories, etc. Only a user who is a member of one of the specified groups can carry out the specified task. b) Ability to "view" things. When you create/edit a link or category, you "assign" a forumid to the link/category. This may be explicit or implicit - i.e. if the user has can_set_permissions (see previous item), then that user can choose which forum to assign to the link, otherwise the default choice set by the administrator is used. Whenever one of your users views these pages, she will only see links and categories for which her usergroup has the appropriate forum permission. I.e. if that group can see and visit a particular forum, then she can see and visit links associated with that forum. This also works when trying to download a file. These are set up as a call to local_links.php?action=jump&id=n. If someone tries to get round the system by simply choosing a random number (or if someone tells someone else what number to enter), the code still checks to see if that usergroup has the relevant permission, and refuses the download if not. The user never gets to see where the actual file is stored. Of course, if someone actually knows where the file is really stored, and gives out that information, then it is perfectly possible to bypass the whole security system. But that is nothing to do with this hack. Clear? |
alright i understand all that... but what if they were on a custom page on vbindex, that rule wouldnt apply anymore right?
|
pm a mod or admin and ask them to move it to the proper area of full release forums..
|
This has now gone to full release 1.0 and moved to the main hack forum
|
I'm having only one issue. It appears that any attempt to 'edit' an existing category automatically sets its catforum to 0. Since I'm not using forum based permissions, I'd like it to remain -999. I'm going to do some more looking around, but this creates some pretty odd behavior.
Otherwise, fantastic hack. I've been waiting for this one to appear. Install was smooth. I've made a slight mod to use to use 'star' images instead of a number rating, since I'm already using those star images on the page elsewhere, and they're cached. Nice and quick. Installed. - ZJ |
Excellent Hack - fantastic.
[high]* trilOByte clicks install [/high] One problem though, I inseted a category as a sub category, when I wanted it as a parent. I tried to move it and got a nopermission error (I'm primary admin, group 6), every attempt to acces thereafter and I get nopermission (I have permissions set to a -ve value). I deleted the category (catid = 3) using phpMyadmin (does only having catid's 1,2,4 cause a problem?) and everything else seems to work OK. I dont know why this happened, just thought I'd bring it to your attention. Thanks for a great hack. :) |
Quote:
|
Oops, fairly big problem - relating to my post on the previous page. If I attempt to edit any of the categories, I get a nopermission error and the category vanishes from the listing. I cant access the category thereafter. It shows in the statistics, but that is the only place I can see evidence of it's existance - aside from the dB itself.
As I said before, I'm primary admin, userid = 1, usergroup = 6. Changing permissions from a -ve value to +ve and specifying forums, makes no difference. |
Quote:
|
Quote:
|
Quote:
Code:
<br /><span class="smallfont">rated <b>$linkrate</b> star</span> Code:
<br /><span class="smallfont">rated: $linkrate</span> PHP Code:
PHP Code:
- ZJ |
Quote:
I did look in the code. There was a variable 'pforum' that is being saved to the catforum column in the db. Is that right variable? Was it initialized? I'll butt out now *grin*.... - ZJ |
Quote:
Code:
UPDATE local_linkscat SET catforum=-999 WHERE catforum=0; - ZJ |
Quote:
|
great hack! install worked flawless!
is there an easy way to import links from a text file? |
Quote:
|
Andrew, I ran Zhin Jio's query and uploaded your new php file, my vanished categories reappeared and it would appear I can now edit them without problems.
You're a star. Thanks to you and Zhin Jio for the speedy fix (and thanks ZJ for the stars mod). Cheers, Great hack Anderw. ;) |
Quote:
- ZJ |
Uhm sorry for the stupid question but in what way is this hack a file database?!?!?! I can only see a links database when I install it. I would be looking for a file database where I can add movies, with a screenshot, movie info etc.
|
Quote:
|
I'm somewhat confused.. lol I think it's more so that I'm tired. i keep getting this message when i try to add a link "(not available)" can someone post a screenshot of an already setup setting for the added link so i can compare it with mine.
|
Quote:
HTML Code:
http://www.bbc.co.uk |
In the url box i just put the source of the file right? http://www.example.com/test/example.mp3
|
Quote:
Give me the link to an mp3 on your site and I'll try to link to it. |
I have fixed the category bugs reported earlier this week. Please reinstall, as there is also a template fix.
To confirm - if you had left the default permissions forumid as -999 and you edited a category without selecting another forum, then the category would disappear into the big blue yonder. If you have encountered this problem, you can repair it by running the sql query given by Zhin Jio. PHP Code:
|
Quote:
|
im confused what you mean andrew..
|
Quote:
|
apache
|
Quote:
|
asksd.mp3
|
Quote:
1) Simply put either a forward slash in front of asksd.mp3, i.e /asksd.mp3, or use a full URL, i.e. http://yoursite/asksd.mp3 2) VB comes pre-configured to handle downloads of bmp, doc, gif, jpg, pdf, png, psd, txt and zip. To handle mp3, you have to go into your VBulletin AdminCP, and set up the proper mimetype for MP3 files. This is done under "Attachments". I'd have to check the right mimetype. Your easiest option is probably (1) - can you try it and see. Can you also upload the attached file, tryit.php, onto your server, run it and let me know what it prints. |
All times are GMT. The time now is 01:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|