vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Ultimate Side Columns (https://vborg.vbsupport.ru/showthread.php?t=141870)

MPDesignZ 08-22-2007 06:34 AM

Hi I need help putting in a php code inside a block in this hack. I'm using simple pie for a rss feed and want to put in the following code into the block so that it shows up in the column like regular links:

Code:

<?php

require_once('simplepie.inc'); // Change this location to match where you uploaded the simplepie.inc file to.



$feed = new SimplePie();

$feed->set_feed_url('http://ml-implode.com/rss.xml');

// For everything else, we'll assume default settings

$feed->init();



echo '<ul class="feed">';



// We'll loop through all of the items in the feed and display a linked title for each of them.

foreach($feed->get_items() as $item)

{

    echo '<li><a href="' . $item->get_permalink() . '" target="_blank">' . $item->get_title() . '</a></li>' . "\n";

}



echo '</ul>';
?>

For some reason I do not get the actual feed URL's but just the raw code that shows up. Any help would be great!

TIA!
MP

xman_79 08-22-2007 07:31 AM

Installed .

Thanks

remlle 08-22-2007 12:17 PM

is there anyway to make these floating so they stay with the user as they scroll down?

wickland 08-22-2007 06:09 PM

Awesome EmpireZ, that did the trick, now I got 20 blocks on each side, editable from the options panel. :)

Thanks!
Best Regards

kholland 08-22-2007 06:38 PM

Hi All,

This mod is great...just having a little trouble with it.

Does any of you have your sidebars a fixed width (I assume most would)? I can't get the middle or main section to collapse when the browser is shrunk.

Any ideas would be very appreciated!

bruuuuce 08-23-2007 01:44 PM

I have read of two others that have this slow loading issue, but no solutions. It is a result of this code

<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->

Right after the header loads, the forum loading pauses then continues as normal.

Anyone have a solution for this?



Quote:

Originally Posted by KHALIK (Post 1205862)
Increased delayed of loading time of forum when this mod is installed.

I installed this mod with out any problems, with default columes. Only used one right-handside colum with no text or image.

I noticed there was a significent delayin the load time when that hack is installed. When I uninstalled this hack, the delay was removed.


Are you getting the same problem?


Quote:

Originally Posted by deep_blue (Post 1264740)
Hi

Is there anybody else facing problem of page laoding a bot slow. The header comes first and then remaining page where sides bars are thee, appear after a lag of 10 seconds or so?? what could be the reason


Brew 08-24-2007 01:01 AM

Does anyone know of a way to get this to show only to certain usergroups?

peterle1 08-24-2007 09:08 AM

This is a great mod and works perfect.

The only problem we have is that "Display Pages For XXX Column" doesn't offer to many choices.
Maybe it would be possible in a next version to combine choices.

Another problem that we have is that we don't want the colmns to appear in the photopost addons, but we don't know how to do it.

Maybe someone has some hints for us. :)

EmpireZ 08-25-2007 02:33 AM

Quote:

Originally Posted by Brew (Post 1324483)
Does anyone know of a way to get this to show only to certain usergroups?

Just add a array for the usergroup to show in the usc_side template.
<if condition="(in_array($vbulletin->userinfo['usergroupid'], array(6)))">

Quote:

Another problem that we have is that we don't want the colmns to appear in the photopost addons, but we don't know how to do it.

Maybe someone has some hints for us.
Use a <if> condition, script for photopost in the beginning of the header template using != to stop it from showing.

Brew 08-25-2007 01:48 PM

Quote:

Originally Posted by EmpireZ (Post 1325167)
Just add a array for the usergroup to show in the usc_side template.
<if condition="(in_array($vbulletin->userinfo['usergroupid'], array(6)))">

Man I have been searching for days for this bit of code to find what usergroup someone is a member of.

Thank you very much!

The whole reason I needed this is because there is not a mod for vB, that I can find, where you can have a side column with links to important parts of the site and other things (like latest X posts etc) and also have advertisements. But the part where the advertisements can be turned off for a certain usergroup (in my forum it's usergroup 9 for Sponsors).

As it is I have to use the vBAdManagement mod to show the links and adverts. And then use this to just show the links and other things without the adverts.

It would be really nice to see a mod where we can have a side column where only the adverts can be turned off leaving other things intact.

But this is working with the code EmpireZ gave me. I just changed the 6 to a 9 in the array and added the code to the top of the usc_sidecolumn_right template of the mod (and the </if> statement at the end).


All times are GMT. The time now is 10:58 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
  • Page Generation 0.01478 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete