![]() |
Quote:
Maybe this help: I thing the best way to make the limit of # saved thread is: Set one variable for that in the script: IF #savedthreads = #maxsavedthreads THEN Show message "You have the limit of tread... delete some... and then add more..." ELSE Add new savedthread. I dont know php or mysql, but i thing this is the quiz. Then the webmaster can set #maxsavedthreads. Thanks again. |
Hi fenix,
Absolutely - that would definetly work...and I think I'll add it to the next version...my main goal though, has been to split a high number of saved threads over to a new page...IE...page 1 has saved threads 1-10, page 2 has 11-20, etc. I tried searching on PHP.net and PHPBuilder.com but just couldn't get the hang of it. :( |
Use MySQL's LIMIT feature:
LIMIT 0,10 <-- will get 10 records, starting from the first one (0) LIMIT 10,20 <-- will get 20 records, starting from the 11th just add something like: if (!$limitstart) { $limitstart = 0; } $limitquery = "LIMIT $limitstart,25"; And reference $limitquery in your MySQL query. Showing the paging mechanisms involves counting how many threads there actually are, then running a loop. Here's the code I used in mArticle to do it: Code:
$acount=$DB_site->query_first("SELECT COUNT(id) AS id FROM $table[articlemain] WHERE section=$sec AND (notes NOT LIKE '%U%')"); |
Commish : I am working on my own thread saving hack at the moment. It is going to have pages (of course) and have a folder system where you can categorize your threads. It will also allow for you to sort the list via a few different criteria.
Here is my monster SQL statement at the moment (all I really have right now) Code:
$q = $DB_site->query("SELECT title, favorites.userid, favorites.threadid, folder |
In that case I'll probably dispose of mine - was fun while it lasted. :) Glad to turn it over to someone with more experience.
Good luck. |
Here is my updated query:
Code:
$q_thread = $DB_site->query("SELECT thread.iconid, icon.title AS icontitle, icon.iconpath, open, thread.title AS threadtitle, |
Please refer to thread http://www.vbulletin.com/forum/showt...7193#post37193 for the beta release of my hack. Will update this thread when I declare it final.
|
All times are GMT. The time now is 11:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|