![]() |
Help : customise block in the sidebare
I have a php file inspire the product "Rate My Photo (HorOrNot Clone)" and correctly displays the best picture of my database and uses a template but I am unable to make my block:
the php code PHP Code:
HTML Code:
<li> |
Try this for the code:
Code:
global $vbulletin; |
Thank you but the block still appears empty
|
Have you created the template called "block-photo" (or does it exist already)?
|
Quote:
her the link demo : her |
Well, I can't really tell what's going on from that. One thing is that the template you posted doesn't have the tags matched - there's one more </div> than there is <div>.
Are you entering that template name in "Template to use"? If so, set "Template to Use" to block_html. Also, set "Cache Time (in minutes)" to 0 until you get it working, then set it to the number of minutes you want to cache. |
Replace this line:
PHP Code:
PHP Code:
|
the new template :
HTML Code:
<div class="block smaller"> https://vborg.vbsupport.ru/external/2013/01/4.gif --------------- Added [DATE]1357149292[/DATE] at [TIME]1357149292[/TIME] --------------- Quote:
PHP Code:
|
Quote:
|
All your variables need to be returned as an array. Example:
PHP Code:
|
I was out for holidays, so just seen it (in my site too). As I'm still out of my working area, the only that I can say for now is that you've an error in configuration. Is PHP block and not HTML.
For more, a bit later... Chris |
Quote:
Thank you for your reply but its not working --------------- Added [DATE]1357156723[/DATE] at [TIME]1357156723[/TIME] --------------- Quote:
|
1 Attachment(s)
This post can be closed because I finally found the solution
PHP Code:
PHP Code:
Title : The best Photo Description : The best photo enacted by Member ratemyphoto Active : Yes Content Type : php Content : code php " Top " Template to Use : block_html Attachment 143157 |
All times are GMT. The time now is 10:29 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:
|