![]() |
Quote:
|
Quote:
Should this not be the case (after more stringent tresting) let me know ;) |
Quote:
|
Quote:
Quote:
Smart guy..! :tired: Quote:
Thanks.. |
Quote:
PHP Code:
PHP Code:
|
Doesn't matter if i am using a custome home_tetris template?
I did that so ican have the same look as my index. |
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.
|
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 ;) |
ok i will do it right now.. let see!
|
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.. |
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.
|
wich is the easier one?
|
both sound complicated for me.. :(
|
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:
PHP Code:
PHP Code:
|
Quote:
|
Yes, that will make it display the teris template not the home one by default.
|
|
Have you got a template called tetris with the tetris HTML code in?
|
sorry i forgot to do that.. try again and see..
|
That works, but you need to make the other change at the top of the file so guests can't play ;)
|
i did that change also..
|
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.. |
Make the first change this instead, this will work ;)
PHP Code:
|
Now i have this error:
Parse error: parse error, unexpected '}' in /home/cra/public_html/forum/tetris.php3 on line 33 |
You need to make sure that you have replaced all the code that you changed before.
|
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! |
Quote:
|
Ok amigo..
Thanks i have work to do.. :D Bye |
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.. :(
|
Sorry, a typo by me there :surprised:
See this post again: https://vborg.vbsupport.ru/showthrea...970#post289970 (just add the extra = in ;)) |
You got it men.. thanks!! :) :cool:
|
Quote:
|
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 |
Quote:
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 |
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.? |
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 |
if i not logged in, in poll i see:
Quote:
|
thanx for the hack bud.
|
******** If you are having problems with the poll, you need to replace the home_poll template ********
|
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|