![]() |
Is there any way to make this so that the listing is in alphabetical order like the main listing? The ones I edit alot are really spread out and it would be easier to go right to the one in the list the same way you do in the main listing. :)
|
I know this is an old hack, but I'd like to try and get it working for me in 2.34 - I can't seem to get it to keep track of the number of times edited - the edits and last edited fields always remain at 0.
This is the code I'm using for the update at the moment: Code:
$DB_site->query("UPDATE template SET templatesetid=$templatesetid,title='$title',template='$template',edits = edits + 1,lastedit=time() WHERE templateid=$templateid"); |
Quote:
Code:
$DB_site->query("UPDATE template SET templatesetid=$templatesetid,title='".addslashes("$title")."',template='".addslashes("$template")."',edits = edits + 1, lastedit='".time()."' WHERE templateid=$templateid"); |
Hmm...doesn't seem to be working. Though somehow I have one template listed now correctly, but I can't get any others to work or that one to register more edits.
So I'm not sure if what I had before somehow worked briefly, or if when I changed to your code it briefly displayed correctly. But I can't replicate it using either my or your code. Weird! Thanks for trying though! |
If you want, I can send you the code I used for this. It is a little different but better than the original hack. I added some features that I use quite a bit. If you're interestd, pm me and I'll get it to you. ;)
|
All times are GMT. The time now is 03:37 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:
|