![]() |
ok well according to editplus
?> is on line 350 |
]now u have to wait to author of this hack to answer... :)
I just gave u a lil tip : alway write what's on line xxx when u get an error like u did there :) |
ok no problem m8 i got it sorted, now just did the hack again and it worked
|
probably you didnt execute the instructions in the readme file? :) or what was the problem?..
|
I have no idea why it didn`t work i normally use wordpad to edit the files but the hack wouldn`t work so i tried it with editplus and it worked
|
jap.. use always editplus or notepad.. not wordpad, cause wordpad uses, like word, formats.. so the text is not pure text as it is in editors like editplus :).
|
for some reason it doesnt get the session hash for me on the maine page so if some one votes for a poll they get an error
|
Quote:
Thanks for pointing out whats wrong Slynderdale ;) |
yea, i noticed the hidden values for s=session[sessionhash] in the polls, but s doesnt get the value, the same goes for the login section too.
|
NTLDR i like your forums and vbindex home page
|
Hi Slyndredale,
could you describe me where exactly the sessionhash wont be displayed?.. if it looks like "s=session[sessionhash]" then you have to put a $ for session[sessionhash]. |
Could someone please tell me how i can add my welcome panel to the page so i can have it in the center and at the top of the page. Thanks
|
ehm.. put the welcome panel code for the 'forumhome' template.. in the 'home' template before $threads.
then you have to add the php-code which you actually add to the original index.php to the index.php of vBindex. put this code after the variables at the top of the file. report me if it works :). |
Thanks m8, it worked but i didn`t like the way it looked so i`ve removed it, one more thing anything i put in the home_right template don`t show up it`s probably me doing something wrong again lol
ok forget the home_right template i`ve sorted that now,knew it was my fault lol :o |
hehe..
in the 'home' template you have to replace the <!-- $right --> with $right. so it'll be no more a comment.. but will be displayed. you can edit the welcome panel that it looks like you want.. just edit the html-code. that wont give any problems. |
Thanks alot el3m3nt for your help, i just edited my post as you where replying to let you ;)
|
hehe.. no problem :).
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
OK, I think this is the fix:
Change This (in home_poll): PHP Code:
PHP Code:
|
Hi,
I just installed both vBulletin and vbIndex, as I'm planning on using them both as the backend for my website (old version at http://www.pinkfloydfan.net and new test-version at http://209.51.137.172). I really like what vbIndex does, and I was thinking of using it to power all pages on my website. So what I'd like to do was to use the header, footer and the left and right blocks in ALL of my pages, and the only thing that would change would be the center "window", where the latest threads and news are. But since vbIndex uses templates so much, I'm pretty lost as to how I should proceed to get what I want. I thought of using require's (as SSI's) as I'm doing right now on pinkfloydfan.net, but for all I tried, it doesn't work. So, could anyone please help me out? Also, if this is possible, would it be too heavy on my server? I ask this because I think there are many MySQL queries and all, so is this a practical option? Sorry, but I'm really a beginner in both MySQL and PHP... Thanks a lot and congrats el3m3nt for such a nice hack!!!! I've tried using phpNuke, postNuke and so many other portal scripts but never liked them. With your script I got exactly what I wanted. Cheers, Paulo |
Thanx NTLDR
The Poll problem fixed ;) |
Quote:
As for server load etc, I'm no MySQL expert, but as long as the number of queries is <=30 (or there abouts) it should be fine. This is what I've been lead to belive, someone may correct me on that ;) |
Quote:
|
Page generated in 20.847882032394 seconds with 44 queries,
spending 20.519717216492 doing MySQL queries and 0.32816481590271 doing PHP things. Ouch. Query: SELECT *,thread.open FROM poll LEFT JOIN thread ON (thread.pollid = poll.pollid) WHERE thread.forumid='244' ORDER BY poll.dateline DESC LIMIT 1 Time before: 2.2398979663849 Time after: 20.608139038086 |
Quote:
Thanks again, Paulo |
Quote:
Here is the code you need to find and change for a muli-paged vBindex: In the vbindex php file change (its right at the end): PHP Code:
PHP Code:
Where: vbindex.php is what you have called the index.php file included with vBindex and template_name is the name of the template that contains the page. Let me know if you have any problems, Regards, Lee (NTLDR) |
If you want to define a set number of templates that you use in every or many pages you can also add the code to the vbindex.php
Find: PHP Code:
PHP Code:
This can save alot of editing etc, when you change menus etc. |
I just tested both things and they work perfectly!!! I'll be redesigning my web site and hopefully by next week it will be all templates. A good thing is that now I'll be able to edit all of my pages through the vBulletin control panel, from what I understood. And also whenever I backup the VB database, I'll back up my whole site with it. Sweet! :)
Anyway, thank you *SO MUCH* to both you NTLDR for helping me out with this and to el3m3nt for making the hack. I'll let you know whenever the website is ready so you can check it out. Cheers! :) Paulo |
No problem, glad could help you out with this, I look forward to seeing your new site ;)
|
Quote:
|
Quote:
|
hm.. DarkReaper.. i don't know how to optimize the sql-querie you posted. if its anyhow possible.. let me know. otherwise you cannot do alot :/
|
How the hell can that query take 20 seconds though?!
|
I tried to install this by following the code exactly and got this.
Quote:
Also there is a typo in the index.php in the English version 1.3 Quote:
Mike |
What is on, or around line 371 in newindex.php? And did you copy the code from an unhacked origional vBulletin index.php that is the same version as you use on your board?
|
This is probably totally newbie kind of question, but:
After installing vBindex 1.3 as instructed, I find myself with the fact that news and polls are not showing. I have created a forum calles newsforum and a forum called pollforum with normal permissions. Although the threads are viewing all right, I cannot view news or polls. Any help will be appreciated. Best regards, |
All times are GMT. The time now is 12:49 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:
|