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 v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

CarlosC 08-24-2002 08:48 PM

Quote:

Add those links in the home_logout template, that way it will only appear to logged in users.
Sorry but can you gime an example.. I am lost.. Do you mean to copy those links to that template?

NTLDR 08-24-2002 08:52 PM

Quote:

Originally posted by Aaow AnD wHiTe
Thanx buddy ^^
After a *bit* of testing it seems like it will take the newest thread with a poll from any forum, even if there are new threads which *don't* contain a poll.

Should this not be the case (after more stringent tresting) let me know ;)

NTLDR 08-24-2002 08:54 PM

Quote:

Originally posted by CarlosC
Sorry but can you gime an example.. I am lost.. Do you mean to copy those links to that template?
After taking a look at the site, these are the links in the top right, that are in the home_right template? If this is the case then I will post the code you need to add here.

CarlosC 08-24-2002 09:02 PM

Quote:

After taking a look at the site, these are the links in the top right
Yeah I?ve been playing around with the hack :p

Quote:

Add those links in the home_logout template, that way it will only appear to logged in users.
Now I understand.. In that way if you are not registered you don see the links to the games!!

Smart guy..! :tired:

Quote:

I will post the code you need to add here
I think is better to let them (unregistered user) see the links to the games so they become more interested about it.. (See but can't touch!!) So I will be waiting for the code! ;)

Thanks..

NTLDR 08-24-2002 09:05 PM

Quote:

Originally posted by CarlosC
But will be nice to let them (unregistered user) see the links to the games so they become more interested about it.. (See bout don't touch!!) So I will be waiting for the code! ;)
If the php files for the games don't already have this code in them:

PHP Code:

if ($bbuserinfo[userid]==0) {
  
show_nopermission();


(or smiliar code), add this after:

PHP Code:

require('./global.php'); 


CarlosC 08-24-2002 09:17 PM

Doesn't matter if i am using a custome home_tetris template?
I did that so ican have the same look as my index.

CarlosC 08-24-2002 09:22 PM

Actually what I am doing to link those games is using the same code in the home template and changing the news for the link to the specific game.

NTLDR 08-24-2002 09:23 PM

No, its the PHP that needs to be changed, with that modification It will stop guests from playing the game, I think that guests are disabled anyway for the game.

Note: all the links in the top right require me to loggin already if you haven't made any changes yet ;)

CarlosC 08-24-2002 09:25 PM

ok i will do it right now.. let see!

CarlosC 08-24-2002 09:32 PM

ok i did it. this is not working.. I am not using the flash.php3 code at all.. i just created a new template called home_tetris (for example) and copy the code from my home template and pasted in the template home_tetris. I removed the code that shows the news and put a link like this:

<td bgcolor="#000000" align="left" valign="top"><normalfont>
<br><br>
<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="100%" height="$h">
<PARAM NAME=movie VALUE="http://www.tecnibyte.com/forum/game.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE="$b"> <EMBED src="http://www.tecnibyte.com/forum/game.swf" quality=high width="$w" height="$h" bgcolor="$b" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT></center><br><br>
</td>

instead..

NTLDR 08-24-2002 09:37 PM

You have two choices here, either add some PHP code to the phpinclude template (which will add extra queries to each page) or make a copy of vbindex.php and rename it and change the permissions at the top and the fefault template.

CarlosC 08-24-2002 09:43 PM

wich is the easier one?

CarlosC 08-24-2002 09:45 PM

both sound complicated for me.. :(

NTLDR 08-24-2002 09:50 PM

copy the vbindex.php to whatever name you want to call it, tetris.php for example and change home the following to the name of the template you created with the code for the tetris game:

PHP Code:

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

and change:

PHP Code:

// check is usergroup can view vBindex
$permissions=getpermissions();
if (!
$permissions[canviewvbindex]) {
  
show_nopermission();


To:

PHP Code:

// check if user is a guest
if ($bbuserinfo['usergroupid']==1) {
  
show_nopermission();



CarlosC 08-24-2002 10:00 PM

Quote:

eval("dooutput(\"".gettemplate('home')."\");");
Do you want me to change ('home') with ('tetris')?

NTLDR 08-24-2002 10:02 PM

Yes, that will make it display the teris template not the home one by default.

CarlosC 08-24-2002 10:04 PM

ok i did it and this is what i got:

http://www.tecnibyte.com/forum/tetris.php3

NTLDR 08-24-2002 10:06 PM

Have you got a template called tetris with the tetris HTML code in?

CarlosC 08-24-2002 10:08 PM

sorry i forgot to do that.. try again and see..

NTLDR 08-24-2002 10:12 PM

That works, but you need to make the other change at the top of the file so guests can't play ;)

CarlosC 08-24-2002 10:13 PM

i did that change also..

CarlosC 08-24-2002 10:17 PM

i also fix the tetris link in the game menu so if you click on it you go to:

http://www.tecnibyte.com/forum/tetris.php3

You can still play..

NTLDR 08-24-2002 10:18 PM

Make the first change this instead, this will work ;)

PHP Code:

// check if user is a guest
if ($bbuserinfo['usergroupid']==1) {
  
show_nopermission();



CarlosC 08-24-2002 10:20 PM

Now i have this error:

Parse error: parse error, unexpected '}' in /home/cra/public_html/forum/tetris.php3 on line 33

NTLDR 08-24-2002 10:22 PM

You need to make sure that you have replaced all the code that you changed before.

CarlosC 08-24-2002 10:27 PM

My fault.. there was an extra "}" :dead:
Now it is working!! :D
thank you men!! i am so #%$#ing happy!!

with this change the performence of my forum is going to be affected?

Thanks again mister hacker!

NTLDR 08-24-2002 10:30 PM

Quote:

Originally posted by CarlosC
with this change the performence of my forum is going to be affected?
This will have no different effect on your site, performance wise, then the method you used before ;)

CarlosC 08-24-2002 10:33 PM

Ok amigo..
Thanks i have work to do.. :D

Bye

CarlosC 08-24-2002 10:46 PM

Sorry one last problem.. even when i am connected i still have the message saying that i don't have permission to see the page.. :(

NTLDR 08-24-2002 10:52 PM

Sorry, a typo by me there :surprised:

See this post again: https://vborg.vbsupport.ru/showthrea...970#post289970

(just add the extra = in ;))

CarlosC 08-24-2002 10:55 PM

You got it men.. thanks!! :) :cool:

Aaow AnD wHiTe 08-24-2002 11:10 PM

Quote:

Originally posted by NTLDR


After a *bit* of testing it seems like it will take the newest thread with a poll from any forum, even if there are new threads which *don't* contain a poll.

Should this not be the case (after more stringent tresting) let me know ;)

I only see the "Vote" button, no poll :(

drives fast 08-25-2002 03:25 AM

Here's one of those "things that makes you go hmmmm"

Okay......the installer for vbindex adds the templates to every template set (if you have more than one) which is good if you have multiple sets for your members to select. I however, have other sets used for things like files pages and the like that are non-selectable (just using the forumdisplay template) so I didn't want these new templates added to those other sets.

The reason I am looking at this is because I installed this on my test forum to get it all ready for implementing on my active forum. I decided that I wanted to update the installer to include some custom templates I made so it would just install them too initally which isn't necessary but I wanted to make it a quick install because my forum is very busy and this would be more painless.

anyway.....while attempting to pull the code from the sql dump to add to the install script (since I don't quite understand the formatting of the data being inserted) I was having trouble with finding the same templates 4 times (multiple styles) and getting the ones I edited.

so...I decide to make copies of the templates I edited then uninstall vbindex. I edited the vbi_template_install.php to make it a remover and it removed all the vbindex templates fine.......then I proceeded to download copies of the other styles (now without the vbindex templates added) then I re-installed the vbindex (after droping the canviewvbindex table)

Okay....everything is installed correctly and now once again, all my template sets contain the vbindex templates too..........I now upload the downloaded style files and overwrite the ones that are present.

Here's the wierd part (sorry this is so long) but whuh?!...the vbindex templates are back in the template sets that weren't in the style files I downloaded

I even went so far as to search the .style files for the vbindex templates and they aren't in there but even though I overwrite the current styles....the vbindex templates are still there

I even went so far as to delete one style and then upload the downloaded style file as a new style and those darn templates are in there when I am done

any idea why it is adding in the vbindex templates to the new styles and why they remain if I overwrite a style with a style that does not contain those templates?

color me stupid but this one has got me scratching the ole noodle pretty hard

camikazi2k 08-25-2002 03:52 AM

Quote:

Originally posted by NTLDR


You *need* to follow the hack instructions, you either haven't installed the home_new and/or home_newsbit template or you haven't set the correct forum id in the vbindex.php file.

I followed the instruction
but it doesnt say anything of what you talking about
the home_newbit template there is nothing i did the auto installation and the regular one

camikazi2k 08-25-2002 04:19 AM

ok ok got most of the things to work, but now again
http://216.147.92.68/vbindex.php
the poll doesnt show anything, and how can i add a button at the top to go the FORUMS.?

drives fast 08-25-2002 06:11 AM

you have to change everything in the home_poll template with the new home_poll template included in the zip file...it is in a dir called "updated templates" when you unzip it all.....that will fix the poll problem.

to add links in the main left link area you just add the html code to the home_logout template if you only want loggedin members to see the link and home_login template if you want logged out (guests) to see the link

inetd 08-25-2002 08:57 AM

if i not logged in, in poll i see:
Quote:

"Vote!" button and Results
How fix it?

irn-bru 08-25-2002 11:05 AM

thanx for the hack bud.

NTLDR 08-25-2002 04:20 PM

******** If you are having problems with the poll, you need to replace the home_poll template ********

NTLDR 08-25-2002 04:25 PM

Quote:

Originally posted by drives fast
so...I decide to make copies of the templates I edited then uninstall vbindex. I edited the vbi_template_install.php to make it a remover and it removed all the vbindex templates fine.......then I proceeded to download copies of the other styles (now without the vbindex templates added) then I re-installed the vbindex (after droping the canviewvbindex table)
Templates in the default template set appear in all template sets, if you add a test template set you will see that it has all the default templates that the other sets have.


All times are GMT. The time now is 08:09 AM.

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.02218 seconds
  • Memory Usage 1,833KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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