![]() |
set specific forum have different button
as title....
for example like here the full release forum ahve different buttons like--install button ect..... how to do that?? |
no-hack solution: Create a new style and apply this style to that forum. In that style design your pages in anyway you like.
But if it's only one button you'll change you may regard considering the "hack solution" which is: put a variable in the template where your button is like $my_button_variable. Then in the .php file where it calls it, put a line to assign the value to that variable like: if ($forumid==X) {$my_button_variable='<img scr.........>';} else {$my_button_variable='<img scr.........>';} (if ($forumid==X) part may change according to the file you apply this code.) |
Quote:
if i want to do "hack solution" which php file should i edit?? showthread or ?? :D |
depends on the location where you want to insert your button. If it's a button like vb.org's INSTALL button which shows up in thread views, yes it's showthread.php that you should edit.
|
Great!
I was looking for this:) Satan |
Quote:
but where should i put this code?? and about the variable how do i replace it in showthread template?? replace <img src={XXXXX}......> to the variable(EX:$my_button_variable) is it right? |
put before
PHP Code:
|
1 Attachment(s)
Logician i put the code :PS:there have sapce !!
PHP Code:
PHP Code:
PHP Code:
PHP Code:
whats wrong with my code? |
1- do not use { image folder}, enter full path
2- Replace X with your forumid. |
Quote:
is it right??i test it on my localhost!! 2.i already replace my forumid!! and Logician the problem still exist!! i think maybe my first step wrong.........so what is the problem? |
Quote:
<img scr="http://localhost/squawell/images/XXX.gif"> 2- Check if your image path is correct: Call the address http://localhost/squawell/images/XXX.gif from your browser to see if you can see the image. If you cant, find the correct address of the image first and make sure you applied the correct address to the hack code. 3- I dont think there is anything wrong with the hack code. It seems ok. So check your image first.. |
Quote:
yes i already check it and its ok..... Quote:
Quote:
|
ok post the HTML code (relevant part only) of the page and lets see..
|
PHP Code:
|
no I meant the HTML code of your page not hack code.
Load the page which does not work (the one you took the screenshot) and choose source view in your browser, then post here the code (not all of them, just the section around the image tag we are trying to switch) BTW. why is your URL "squawellftp.dns2go.com"? Shouldnt you refer to your local host with a line smt. like that: http://localhost/squawell/images/installed.gif |
1 Attachment(s)
Quote:
sorry..i misunderstand what u mean.....now i post the file see attachment file.... Quote:
forumi must use the url.....if not use the localhost url.... |
Quote:
Here is your source code: PHP Code:
|
Quote:
anyway Logician...thnakz for ur help......... |
Quote:
anyway Logician...thnakz for ur help......... |
All times are GMT. The time now is 07:56 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:
|