vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex (https://vborg.vbsupport.ru/showthread.php?t=37021)

wintz 04-12-2002 02:18 PM

ok well according to editplus

?>

is on line 350

wooolF[RM] 04-12-2002 02:57 PM

]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 :)

wintz 04-12-2002 03:50 PM

ok no problem m8 i got it sorted, now just did the hack again and it worked

el3m3nt 04-12-2002 04:16 PM

probably you didnt execute the instructions in the readme file? :) or what was the problem?..

wintz 04-12-2002 04:19 PM

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

el3m3nt 04-12-2002 04:25 PM

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 :).

Slynderdale 04-12-2002 10:01 PM

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

NTLDR 04-12-2002 10:28 PM

Quote:

Originally posted by Slynderdale
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
I'm not sure the cause of this, I'm gonna look into that tomorrow but I've had that problem to and couldn't figure out why it didn't work, -=dm=- also had this problem.

Thanks for pointing out whats wrong Slynderdale ;)

Slynderdale 04-13-2002 12:25 AM

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.

Slynderdale 04-13-2002 12:30 AM

NTLDR i like your forums and vbindex home page

el3m3nt 04-13-2002 06:24 AM

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].

wintz 04-13-2002 01:09 PM

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

el3m3nt 04-13-2002 01:13 PM

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 :).

wintz 04-13-2002 01:54 PM

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

el3m3nt 04-13-2002 01:58 PM

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.

wintz 04-13-2002 02:02 PM

Thanks alot el3m3nt for your help, i just edited my post as you where replying to let you ;)

el3m3nt 04-13-2002 02:06 PM

hehe.. no problem :).

Slynderdale 04-13-2002 05:07 PM

Quote:

Originally posted by el3m3nt
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].

its just s= theres no value fors, i checked the code and theres $ before it

NTLDR 04-13-2002 05:13 PM

Quote:

Originally posted by Slynderdale
NTLDR i like your forums and vbindex home page
Thanks Slynderdale, your feedback is very much apriciated, I'm gald you like that look of my site :D

NTLDR 04-13-2002 05:14 PM

Quote:

Originally posted by el3m3nt
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 :).

This is one of this first things I did when I installed vBindex, the welcome panel has allways worked fine for me.

NTLDR 04-13-2002 05:18 PM

Quote:

Originally posted by Slynderdale


its just s= theres no value fors, i checked the code and theres $ before it

Which file, template is this in? I think I may have this bug in my site, you can find and s=session[sessionhash] lines that need to be changed.

Slynderdale 04-13-2002 05:33 PM

Quote:

Originally posted by NTLDR


Which file, template is this in? I think I may have this bug in my site, you can find and s=session[sessionhash] lines that need to be changed.

home_poll and home_login, the sessionhash vaible is blank

NTLDR 04-13-2002 06:02 PM

OK, I think this is the fix:

Change This (in home_poll):

PHP Code:

<input type="hidden" name="s" value="$session[sessionhash]"

To This:
PHP Code:

<input type="hidden" name="s" value="$session[dbsessionhash]"

I think it should work then :D

The Piper 04-13-2002 07:59 PM

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

-=dm=- 04-14-2002 12:53 AM

Thanx NTLDR

The Poll problem fixed ;)

NTLDR 04-14-2002 05:50 PM

Quote:

Originally posted by The Piper
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

Yes this can be done very easily, I'll post the modifications you need to make to have a mulipaged vBindex site after, see My vBindex (in my sig) for an example of a multipaged version of vBindex.

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 ;)

NTLDR 04-14-2002 05:51 PM

Quote:

Originally posted by -=dm=-
Thanx NTLDR

The Poll problem fixed ;)

Yey!! I'm glad I've finally been able to fix this bug ;)

DarkReaper 04-15-2002 01:43 AM

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

The Piper 04-15-2002 05:26 PM

Quote:

Originally posted by NTLDR

Yes this can be done very easily, I'll post the modifications you need to make to have a mulipaged vBindex site after, see My vBindex (in my sig) for an example of a multipaged version of vBindex.

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 ;)

Thanks a lot, NTLDR. I look forward to hear from you. By the way, I`ve checked your vBindex page and it looks great, that's exactly what I want to do. In a way, it's what a portal system would allow me to do, but I don't like the way how every page using a portal system looks exactly the same as other pages... That way I could keep my own design but still use the nice features of vBindex.

Thanks again,
Paulo

NTLDR 04-15-2002 07:26 PM

Quote:

Originally posted by The Piper
In a way, it's what a portal system would allow me to do, but I don't like the way how every page using a portal system looks exactly the same as other pages... That way I could keep my own design but still use the nice features of vBindex.
This is why I've chosen not to use a portal system, because it looks the same as everyone elses site and is mean't for a lot of things I don't need or want to do, this way I can fully integrate with my forums and have a common design thoughout my site.

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:

eval("dooutput(\"".gettemplate('home')."\");"); 

To:
PHP Code:

if (!$page)
// no page specified
{
eval(
"dooutput(\"".gettemplate('home')."\");");
}
else
eval(
"dooutput(\"".gettemplate("$page")."\");");
//eval("dooutput(\"".gettemplate('home')."\");"); 

to get the homepage use http://mysiteurl/forumsdir/vbindex.php to get any other page use http://mysiteurl/forumsdir/vbindex.php?page=template_name

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)

NTLDR 04-15-2002 07:26 PM

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:

eval("\$homefooter .= \"".gettemplate('home_footer')."\";"); 

Add After It:
PHP Code:

// my templates
//--------------------------
eval("\$homestats = \"".gettemplate('home_stats')."\";"); 

Where $homestats is an example of what you want to place in your page eg, puting $homestats on a page to display stats where you want and home_stats is the name of the template with the code.

This can save alot of editing etc, when you change menus etc.

The Piper 04-15-2002 09:51 PM

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

NTLDR 04-15-2002 10:06 PM

No problem, glad could help you out with this, I look forward to seeing your new site ;)

DarkReaper 04-15-2002 11:54 PM

Quote:

Originally posted by DarkReaper
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

Fix? Please? :)

NTLDR 04-16-2002 07:25 AM

Quote:

Originally posted by DarkReaper


Fix? Please? :)

There is no fix, other than to remove the poll feature from the vBindex PHP file, which isn't technically a fix.

el3m3nt 04-16-2002 09:31 AM

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 :/

DarkReaper 04-16-2002 09:37 PM

How the hell can that query take 20 seconds though?!

indiamike 04-18-2002 08:26 PM

I tried to install this by following the code exactly and got this.

Quote:

Parse error: parse error in /home/indiamik/public_html/india/newindex.php on line 371
Any suggestions or ideas where I messed up. I followed the instructions word for word and redid it a few times. I show nothing for a line 371 in my Php Coder.


Also there is a typo in the index.php in the English version 1.3
Quote:

$templatesused.='home_threadbit,home_treads,forumh ome_loggedinuser,';
home_treads should be home_threads.

Mike

NTLDR 04-18-2002 09:34 PM

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?

hkim 04-19-2002 08:41 AM

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
  • Page Generation 0.01428 seconds
  • Memory Usage 1,843KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete