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


All times are GMT. The time now is 10: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
  • Page Generation 0.03214 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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