![]() |
No, the php in the CODE does not work - the PHP bit is not run.
The image I showed you is an example of what it SHOULD look like if the PHP worked. I suspect what I need to do is alter the hack itself to process the header and footer so that php script is run. I'm confidant with PHP but hacking vBulletin is something entirely different. |
Quote:
Here is what I tried (and IT WORKED!!!) Edit your index.php file and find: PHP Code:
PHP Code:
Then, go into your FORUMHOME template and find : HTML Code:
$navbar HTML Code:
$HTML Rgds |
That's a nice, bit of code, but no, I want to include an HTML file at the top of one specific forum.
|
Quote:
[html] <if condition="$forumid=XYZ"> $HTML </if> Remember to change XYZ with the forum id of the forum you want the external HTML file to show. Let me know if it works. Rgds |
Again, that's great but it's a whole chunk of code for the header for ONE forum. That's a lot of code to include if you have 30 forums.
Might it not be easier to allow the hack to work on a bit of PHP code? |
Quote:
Rgds |
Your help is appreciated.
|
Fantastic! Installed!
|
Quote:
PHP Code:
|
Quote:
Thanks to sv1cec for trying to get this to work for Spinball. Unfortunately, vBulletin won't parse PHP in ANY template. I think what you are looking for is a completely different hack. I'm not sure how it would work. Sorry :( (P.S. New hip is healing nicely. Thanks for the nice notes :)). |
I got the hack installed... but for some reason it wont let me remove the banner i set in it.. how do i do this? it doesnt show it when i go into admincp and look under footer.
http://forums.fraghard.com/forumdisplay.php?f=104 |
how do I get this to display in postbits?
|
Quote:
|
I am into saving space. Placing an image above does not look good, and pushes page down. Where as there is a nice empty spot between avatar and ratings. I could place a forum specific image in there.
|
Well, you could try putting the $foruminfo[forumheader] (or footer) variable into the postbit template and see what happens. I think it should work just fine. Keep in mind that it will put the image (or whatever) in EVERY post. If you try it, let us know if it worked.
|
not necessarily. I am currenly using conditionals to display images in first post only, like CNN.
I tried already and nothing happened. That is why I asked. |
Oh ---
I guess the $foruminfo variable isn't being passed to the postbit template. Somehow the post needs to know which forum it's in and look up the header info for that forum. I'm not sure what would need to be done. Sorry I couldn't be of more help. Feel free to modify my code for a new hack and good luck :) |
Installed and working within minutes. If only every mod was so easy, thank you very much.
|
I went in "important and maintenance" and "execute sql query".
I tried: ALTER TABLE `forum` ADD `forumheader` MEDIUMTEXT NOT NULL AFTER `description`; ALTER TABLE `forum` ADD `forumfooter` MEDIUMTEXT NOT NULL AFTER `forumheader`; and got this: An error occurred while attempting to execute your query. The following information was returned. error number: 1064 error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '; ALTER TABLE `forum` ADD `forumfooter` MEDIUMTEXT NOT NULL AF Why? |
Be sure to put your forum prefix before 'forum' in both lines. So it might look like this:
ALTER TABLE `vb_forum` ADD `forumheader` MEDIUMTEXT NOT NULL AFTER `description`; ALTER TABLE `vb_forum` ADD `forumfooter` MEDIUMTEXT NOT NULL AFTER `forumheader`; |
very nice! works great!
/me installs! |
OK, I think I am missing a step.
I altered the DB, changes the forums file, and made the two template mods -- and I see nothing. I don't even know where to add the header and footer. Help! blueintr |
Cockpit error! I figured out how to make it work.
blueintr |
Quote:
|
Quote:
Enjoy, |
Does anyone have any idea how to get this thing to parse PHP? I really do need this functionality. Alternatively, can anyone tell me why vbulletin does not parse php naturally without having to do all these workarounds? Not the usual "security issues" line, I am praying... :ermm:
The inability to parse PHP is no minor issue. In my eyes it's a really massive problem. |
I would guess it can but would appreciate help with how to do it
Cheers |
this sounds great. so effectively i could do the following?
at the moment i have an Xbox gaming website at www.xboxworld.com.au if i wanted to start up another couple of websites, ps2, gamecube etc i could create subforums for each one. and then apply this hack and have custom graphics at the footer and header of each one so that they appeared to be different forums, unique to each differnt site? ie; the existing xbox one with its existing header and footer, a ps2 one with a new header and footer and a gamecube one with a new header and footer etc etc repeat until dizzy. i could then effectively have one forum that appeared to be any number of different ones as there's a hack to hide forums from the index of the main forum that they live under right? |
Very nice. For more functionality use a random image cycler if you have more than one sponsor for a particular forum. (sorry if that has been mentioned)
**installed |
Very nice
installato ok :D |
thank! its a great hack!
installed |
great
now what code would I use for adding flash? well my question is after adding flash the dropdown menu apears under the flash banner how to fix this? |
Quote:
Only thing to keep in mind when using FLASH, is that your drop-down boxes will go "below" the flashmovie and not work properly. (it will appear as if your flash file is covering up the drop-down boxes) I placed the code for this hack ABOVE the navbar, so they are unaffected by the flash file.... |
Any idea when i try to add a banner the img source is shown up as
http://forum.ragezone.com/baner/staffbanner.jpg><table%20class= quite confused tbh... |
Quote:
You clearly don't have a closequote after the image tag... Simple HTML error. /staffbanner.jpg"> |
Wooooooooooopsssssss
|
Quote:
I take it this means that was the issue? |
ye thanks
|
no problem sir. :)
|
Installed and seems good
But the most confisuing part is Why do i have to Put the code again again for subforums. Is there a way we can automatically put them for subforums |
All times are GMT. The time now is 02:21 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:
|