Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbAdvanced Addon for AboutToday Details »»
vbAdvanced Addon for AboutToday
Version: 1.00, by CyberRanger CyberRanger is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-17-2006 Last Update: Never Installs: 43
Template Edits
 
No support by the author.

This is to install an addon to vBAdvanced for AboutToday . It assumes that AboutToday is installed, the RSS Feeds are active, and "How many rows across for $myfeeds variable?" is set to greater than zero.


In vBa CMPS, Add Module - Template.

1. Module Title - Make this whatever you want to display
2. Template to Include: adv_portal_myfeeds
3. Template Content:

<tr>
<td class="$bgclass">
$myfeeds
</td>
</tr>

4. Save it and refresh your vbadvanced index page!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 04-25-2007, 06:30 PM
kiFF kiFF is offline
 
Join Date: Apr 2007
Location: US
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberRanger View Post
Have you also set "Include this Feed in $myfeedsdetai variable" to "Yes" for the feeds you want?
Yes.

Quote:
If yes, can you copy the contents of the plugin abouttoday_myfeeds here?
Where do I find that?
Reply With Quote
  #53  
Old 04-25-2007, 08:08 PM
kiFF kiFF is offline
 
Join Date: Apr 2007
Location: US
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This?

Code:
global $vbulletin, $myfeeds, $myfeeds2, $myfeeds3, $myfeedsdetail;

$globaltemplates = array_merge($globaltemplates, array('histtd_talkit_bit'));

if ($vbulletin->options['histtddisplaymyfeeds'] > 0) 
{
	// Get the RSS Feeds
	$temp = $db->query_read("select todaytitles from " . TABLE_PREFIX . "histtd_rss where myfeeds = 1 order by name");
	
	
	if ($temp != "") {
					
			$myfeeds = '<table width="100%">';
			$i = 1;
			
			while ($rssfeeds = $db->fetch_array($temp))
			{
				if ($i == 1) // start the first row
				{
					$myfeeds .= '<tr>';
				}
				
				$myfeeds .= '<td width="540" valign="top"><table>'.$rssfeeds['todaytitles'].'</table></td>';		
				
				if ($i == $countfeeds) // finish row and start new
				{
					$myfeeds .= '</tr>';
				}
				elseif (($i % $vbulletin->options['histtddisplaymyfeeds']) == 0)
				{
					$myfeeds  .= '</tr><tr>';
				}
				
				$i++;
			} 
			
			$myfeeds .= '</table>';
			
	}
}

if ($vbulletin->options['histtddisplaymyfeeds2'] > 0) 
{
	// Get the RSS Feeds
	$temp = $db->query_read("select todaytitles from " . TABLE_PREFIX . "histtd_rss where myfeeds2 = 1 order by name");
	
	
	if ($temp != "") {
					
			$myfeeds2 = '<table width="100%">';
			$i = 1;
			
			while ($rssfeeds = $db->fetch_array($temp))
			{
				if ($i == 1) // start the first row
				{
					$myfeeds2 .= '<tr>';
				}
				
				$myfeeds2 .= '<td width="540" valign="top"><table>'.$rssfeeds['todaytitles'].'</table></td>';		
				
				if ($i == $countfeeds) // finish row and start new
				{
					$myfeeds2 .= '</tr>';
				}
				elseif (($i % $vbulletin->options['histtddisplaymyfeeds2']) == 0)
				{
					$myfeeds2  .= '</tr><tr>';
				}
				
				$i++;
			} 
			
			$myfeeds2 .= '</table>';
			
	}
}

if ($vbulletin->options['histtddisplaymyfeeds3'] > 0) 
{
	// Get the RSS Feeds
	$temp = $db->query_read("select todaytitles from " . TABLE_PREFIX . "histtd_rss where myfeeds3 = 1 order by name");
	
	
	if ($temp != "") {
					
			$myfeeds3 = '<table width="100%">';
			$i = 1;
			
			while ($rssfeeds = $db->fetch_array($temp))
			{
				if ($i == 1) // start the first row
				{
					$myfeeds3 .= '<tr>';
				}
				
				$myfeeds3 .= '<td width="540" valign="top"><table>'.$rssfeeds['todaytitles'].'</table></td>';		
				
				if ($i == $countfeeds) // finish row and start new
				{
					$myfeeds3 .= '</tr>';
				}
				elseif (($i % $vbulletin->options['histtddisplaymyfeeds3']) == 0)
				{
					$myfeeds3  .= '</tr><tr>';
				}
				
				$i++;
			} 
			
			$myfeeds3 .= '</table>';
			
	}
}

if ($vbulletin->options['histtddisplaymyfeedsdetail'] > 0) 
{
	// Get the RSS Feeds
	$temp = $db->query_read("select `description` from " . TABLE_PREFIX . "histtd_rss where myfeedsdetail = 1 order by name");
	
	
	if ($temp != "") {
					
			$myfeedsdetail = '<table width="100%">';
			$i = 1;
			
			while ($rssfeeds = $db->fetch_array($temp))
			{
				if ($i == 1) // start the first row
				{
					$myfeedsdetail .= '<tr>';
				}
				
				$myfeedsdetail .= '<td valign="top">'.$rssfeeds['desc'].'</td>';		
				
				if ($i == $countfeeds) // finish row and start new
				{
					$myfeedsdetail .= '</tr>';
				}
				elseif (($i % $vbulletin->options['histtddisplaymydetail']) == 0)
				{
					$myfeedsdetail  .= '</tr><tr>';
				}
				
				$i++;
			} 
			
			$myfeedsdetail .= '</table>';
			
	}
}
Reply With Quote
  #54  
Old 04-26-2007, 02:14 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks good. Can you PM me your site url along with an admin login and password? I'll check it out for you.
Reply With Quote
  #55  
Old 06-13-2007, 12:07 PM
x YNWA x x YNWA x is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erm which module Do I make?
BBcode, template or php? It doesnt say in the instructions, just says create a module, cheers
Reply With Quote
  #56  
Old 06-13-2007, 12:25 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by x YNWA x View Post
Erm which module Do I make?
BBcode, template or php? It doesnt say in the instructions, just says create a module, cheers
Quote:
In vBa CMPS, Add Module - Template.
enjoy
Reply With Quote
  #57  
Old 06-13-2007, 01:01 PM
x YNWA x x YNWA x is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry my mistake! I got it on the homepage now, but I have 1 problem with it on my forum page its www.pesforum.co.uk/forum

Basically at the bottom all the feeds are one big list, is there a way I can get them into columns side by side to each other, I know I can do this for the variable option but doesnt give the option for the default settings, thanks for the help
Reply With Quote
  #58  
Old 06-13-2007, 01:04 PM
x YNWA x x YNWA x is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also another question is how do I setup the "Include this Feed in $myfeeds2 variable" and "Include this Feed in $myfeeds3 variable" options?

Would like rss feeds about something else say at the bottom of my homepage to go with the ones on the right, how would I add the no2 variable and no3 into the portal? thanks
Reply With Quote
  #59  
Old 06-22-2007, 11:41 PM
redskins_43 redskins_43 is offline
 
Join Date: Feb 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i installed the main hack and about to install this one but am lost as to what the variable should be, greater than '0'?

"It assumes that AboutToday is installed, the RSS Feeds are active, and "How many rows across for $myfeeds variable?" is set to greater than zero."

i also had trouble viewing feeds using the main hack. sorry for posting here. thanks!!
Reply With Quote
  #60  
Old 06-23-2007, 10:26 AM
redskins_43 redskins_43 is offline
 
Join Date: Feb 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i changed it to 4 and i tried to install this hack and got this:

Database error in vBulletin 3.6.7:

Invalid SQL:

SELECT *
FROM template
WHERE title = 'adv_portal_adv_portal_myfeeds'
AND styleid IN();

MySQL Error : 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 ')' at line 4
Error Number : 1064
Reply With Quote
  #61  
Old 06-27-2007, 07:10 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redskins_43 View Post
well i changed it to 4 and i tried to install this hack and got this:

Database error in vBulletin 3.6.7:

Invalid SQL:

SELECT *
FROM template
WHERE title = 'adv_portal_adv_portal_myfeeds'
AND styleid IN();

MySQL Error : 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 ')' at line 4
Error Number : 1064
PM me your site url along with an admin login and password and I'll check what you have going on.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 01:52 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
  • Page Generation 0.04875 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete