![]() |
@ 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 |
HarryButt, is done. i added a variable there.
just redownload the file and make sure in the readmefirst.txt file it says at the top version 3.0. Emma, in the new index.php file find: Code:
if ($thread['forumid'] != $newsforum) { Code:
$threadbits = ''; emma, please dont remove the copyright text mentioned in the hack. first of all, it's using vBulletin functions so it is part of it. in other words, is illegal to remove the copyright. second, it's my hack. i worked some time on it so everyone could use a reliable code and all i ask is a link to my website. thanks. also, i want you all the let me know what do you think about the new version. thank you. :) |
Ok i got a question...
Whats the syntax to show the user on the panel what the forum name is where the latest post resides.. like.. Blah Blah post Name Here 09-18-2002 04:51 PM by Whoever Views: 48 Replies: 1 testing Forum Name: NAME HERE is it as easy as making a $forum[whatver] or is there more to it.. |
is complicated if you dont want to add queries, you have to create new field in table thread and index it, then you run a extra query every time you post a new thread. the other way is to add a query every time you perfom the $thread mysql query. that will make you endup in a loop with 50-100queries performed on vbHome page.
so forget about it. why is it so important for you to show that info? do you think the users care what forum is posted in? they read the thread title and if interesting they will visit it. personally, i use only the thread title as link... but others requested the extra info that comes with it so i include it. you can use vbIndex (it's code is partially mines, copied from previous vbHome (lite) versions, without permission) if you want to show the forum titles... and also if you want to crash your server. vbIndex uses 50-150queries on it's regular page. lol, i saw element having on his page 172queries. NTLDR came up with vbIndex 2 (and put a little note inside - code by TECK), but still it uses 47 queries when set to minimum. there you have it, now it's up to you. |
hmmm... i have an idea, vbHome'rs. :)
how but instead of the avatar's picture (that some of you still want it), i add some custom iconews pictures, aligned to the right? it will look similary to phpnuke. this should be extremly easy to do, so let me know if you are interested. ofcourse the number of queries will be always the same... take a look below... |
i think it would be cool...
cant go wrong with eye candy |
I get
Fatal error: Call to undefined function: gettemplate() in /usr/local/psa/home/vhosts/chuckpalahniuk.net/httpdocs/dev/index.php on line 34 http://www.chuckpalahniuk.net/dev/ |
check your code changes. you made a mistake.
|
alright.
could it be because i am using files that have code changes from installing vb portal? i've been experimenting with all the vb home page hacks. |
as you know the hack was tested on a unhacked board.
however it should not interact with any of the pages since it does all the job by itself and pulls all the information from the database. you made a code mistake. check it again. |
I did find what could be called an error..
let me attempt to explain. I make a post in the news section and its shown on the main page. Someone else goes in and reply's to my post. Its updated on the main page showing last comment posted by user X. No problem. I go back into news and make a new topic. Again, its shown on the main page like it should. The problem lies on the previous post. Users X replied to my initial thread. His name is still there. Now, when you click Mr. X's name you dont see his profile anymore, rather you see the profile of the person making the new topic. member.php?s=&action=getinfo&find=lastposter&forum id=22 Eventho your clicking Mr. X's name you are seeing my profile cause i am the one making a new post in the forum eventhough your clicking Mr. X's name. Does what i am saying make any sense? Its loading the profile of the last poster in the forum rather then the last poster for that specific topic. |
you are correct. i'm gonna change it. i will not add more code to it just because this issue... it requires extra hacking in VB files, fields added to table thread... you get the picture.
find: Code:
$article['comments'] = 'last comment by <a href="' . $bburl . '/member.php?s=' . $session[sessionhash] . '&action=getinfo&find=lastposter&forumid=' . $article[forumid] . '">' . $article[lastposter] . '</a>'; Code:
$article['comments'] = 'last <a href="' . $bburl . '/newreply.php?s=' . $session[sessionhash] . '&action=newreply&threadid=' . $article['threadid'] . '">comment</a> by ' . $article['lastposter']; |
the vbHome copyright:
Do NOT remove it because you infringe the vBulletin license agreement. vbHome is based on vBulletin code and it uses some of it's functions. Also, the code is created by me, so all I ask in return is to leave the links unaltered and intact. Is a small price for what you can do with this free and reliable piece of software interface. |
where can i find a demo board with this hack installed???
or anyones live site? |
why do you need a demo? i posted some screenshots...
is better is you install it on your test board to see... if you dont have one, you could get one here: https://vborg.vbsupport.ru/showthrea...threadid=39482 cheers. |
thanks TECK,
I think this hack is what i am after. I am looking for the most suitable hack that will allow me to do the following: 1. place the login/password feature on the home (non vB) page. 2. place polls on non vB pages. 3. calculate the users online on the entire site, not just the vB forum pages. 4. have some member only pages (non vB), protected by the username and password access from vB! I am using vB 2.2.7. (brand new forum!) I have looked through most of this thread but thought it best to state it in full here. |
you can add all this very easy...
1. is included 2. is a tut listed under addons 3. vbHome uses permissions.. actually i will write a little addon on how to define perms only for vbHome keep in mind that vbHome it is a vBulletin page. it's part of it, so all restrictions related to it aply also.. just read the copyright on the first post. thanks. |
Quote:
I have downloaded your file, have just read thru the readmefirst file and although it says " vbHome (lite) is fully customizable through vBulletin templates, so it's very easy to achieve any look or web design you want. " but i am not sure if i can actually use it on my home page and not use the included vB template? Can i cut and past the code? Will this work? |
i have no idea what are you saying.
|
TECK,
i will try to set up your hack and integrate it into my existing homepage. www.glo-racing.com/v3 It is the registration and users online that i want to use on my homepage. |
in /forum/index.php, copy and paste the online users code. follow one of my tutorials listed in the first post, under add-ons to understand the technique.
good luck. |
teck when you release a full versione of vbhome with all functions ?
|
the full version is released already. is here.
|
100 $? :/
|
you asked for the full version. nobody is forcing you to buy it.
if you look at the list of options, you will understand that it have a very low price. and please do not discuss prices here, since i'm not allowed to advertise other products. post your comments to the site if you have any. thanks. |
Quote:
|
yes. it will be added as an add-on, so if people like to have it it will be easy for them to install it. i code it in the same time i code my site... :)
i'm still thinking of a wise way, but rest assuered it will show up here soon. :) |
i have installed the hack , but i only get a blank page?
any help? pls |
Quote:
|
thanks for the info.
This is a great addition to VB. Thanks for all your time and effort |
Quote:
|
All times are GMT. The time now is 08:34 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:
|