![]() |
@ EnriqueHavoc and others
What I did with EnriqueHavoc's Info :) This news forum in our case is visable and users can only reply to posts not make new ones. Added: Comments (number of replays )to each news post with a link back to the thread for people to post on it. VBhome Index.php Find: forumid,postusername,postuserid,post2.pagetext as pagetext Before add: thread.threadid,replycount ----------------------------------- Find: while ($news=$DB_site->fetch_array($getnews)) { $newstitle=$news[title]; $newstime=vbdate($timeformat,$news[dateline]); $newsdate=vbdate($dateformat,$news[dateline]); $newsusername=$news[postusername]; After add: $threadurl=$news[threadid]; $replycount=$news[replycount]; save -------------------------------------- Template: home_newsbits Add (were you want the "(Comments: 0)" (Comments: <a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$news[threadid]">$news[replycount]</a>) save ------------------------------------- :banana: |
I am still using the last version which I love by the way but my question is on the lastest threads part, how do I make it to where it only includes 1 forum, as compared to excluding forums.
Thanks! Emma |
Q: about the newsbit
The news post on our site can be 1000+ char. This puts the entire post on the page. (so the main page could be 4-5 pages long) Is there a way to limit the char to a # amount ... and if you want to read more goto the post or click a link "more" ..and be put in the forums to read it. Like a headline paragraph |
i'm gonna release an even cleaner version.. i started working on it right now.. testing the queries.. etc.
you will be able to fix the newsthread's lenght on it. |
Teck! I don't think you saw my question!
I am still using the last version which I love by the way but my question is on the lastest threads part, how do I make it to where it only includes 1 forum, as compared to excluding forums. This is the last thing I need and the site will be up and running so please help me! Thanks! Emma |
emma it will solve your to. patience. :)
i do a minor rewrite.. optimising the damn queries again. |
minor rewrite??? guys get readdy... i did it!!! :)
i managed to get out of the queries loop!!! from now on, vbHome will have only 14 queries, no matter how many threads or news articles you post. yep, that's right, you can list 1000 threads or articles and still will perform only 14 queries. i did a full code rewrite and released v3.0. :) is probably the best code rewrite i ever made in all my hacks. i also integrated the login and username panel (my own, no someone else's) and many other options, like article chars lenght, latest threads or(and) articles, etc. pretty much all the options others requested here and could not manage to get it inserted. i'm still working on the html code a little... be prepared you will have to trash the old vbHome... :) however the new vbhome it will take you about 5min to install it and maybe 2 or 1, if you already had it installed. the upgrade is not needed. only to swap the index.php file and replace all templates. :p UPDATE ok i will upload the new file in 2minutes and post here some screenies... MAKE SURE YOU READ THE FIRST POST. i listed there all the new features. if you installed this hack before, all you have to do is change the templates and upload the new index.php file. just read the new readmefirst.txt file. the guest look: |
and the loggedin look:
|
Quote:
|
Wow :) That really really cut down on the queries.... wow. lol :) Thank you so much :)
One thing tho :) I couldn't find how to only include one forum in the latest threads ;) lol :) Emma :D |
All times are GMT. The time now is 06:32 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:
|