Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Dec 2009, 10:57
jaffaman jaffaman is offline
 
Join Date: Nov 2004
Widget and side block.

I have aske over at vbulletin.com but i thought i would ask here as well.

I have got a cms php widget working on a test site with the code below but when i try and make a side forums block the code does not work even tho i have got a html block working ok.
I do not know how 2 code so i thought i would ask if anyone cold help please as i am looking at putting our site live soon and want to get tings sorted before i do the upgrade.

Here's the working widget code for our BHD server status.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks in advance for any help
Attached Images
File Type: png block.png (23.3 KB, 62 views)
Reply With Quote
  #2  
Old 29 Dec 2009, 13:15
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
Try replacing $output .= with return in the last line but one.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #3  
Old 29 Dec 2009, 13:55
jaffaman jaffaman is offline
 
Join Date: Nov 2004
That sort of works thanks i can now see it in the side bar but it also shows above the header as well this seems to be intermitment so might just be me but i had the sam problem with Firefox & IE.

So the end of the code now looks like.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.




Thanks again for helping me
Attached Images
File Type: jpg both.jpg (80.8 KB, 17 views)

Last edited by jaffaman; 29 Dec 2009 at 14:18.
Reply With Quote
  #4  
Old 29 Dec 2009, 15:25
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
Try this (all echo replaced with $output .= and removed then unnecessary output buffering):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #5  
Old 29 Dec 2009, 16:24
jaffaman jaffaman is offline
 
Join Date: Nov 2004
Thats stoped the side bar and above the header issue but for some reason it will not update the players on the server.
When i done the edit and save it and went to the sideblock for the 1st time it showed 2 players on but it is still showing 2 players on even tho the server is empty ? the widget on the cms is updateing ok as that shows 0 players.
Attached Images
File Type: png 2players.png (21.4 KB, 19 views)

Last edited by jaffaman; 29 Dec 2009 at 16:30.
Reply With Quote
  #6  
Old 29 Dec 2009, 16:36
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
The forum blocks are cached. Try changing Cache Time (in minutes) setting to 0 for your block. But beware, that will run the query every single time a page is loaded.
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #7  
Old 29 Dec 2009, 16:53
jaffaman jaffaman is offline
 
Join Date: Nov 2004
Thanks alot for your help that done the trick
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Profile Enhancements PS - Ads In Profile (Right Side Block) PaulSonny vBulletin 3.7 Add-ons 90 09 Apr 2013 18:40
Profile Enhancements PS - P3tz In Profile (Right Side Block) PaulSonny vBulletin 3.7 Add-ons 54 04 Sep 2011 20:31
Profile Enhancements Mini ESPN Video in profile (right side block) stangger5 vBulletin 3.7 Add-ons 13 10 Dec 2008 01:25
Profile Enhancements MiniVeoh In Profile (Right side block) xxalexkimxx vBulletin 3.7 Add-ons 0 21 Aug 2008 08:10



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:22.

Layout Options | Width: Wide Color: