vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vbAdvanced Addon for AboutToday (https://vborg.vbsupport.ru/showthread.php?t=108274)

kiFF 04-25-2007 06:30 PM

Quote:

Originally Posted by CyberRanger (Post 1235321)
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?

kiFF 04-25-2007 08:08 PM

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>';
                       
        }
}


CyberRanger 04-26-2007 02:14 PM

That looks good. Can you PM me your site url along with an admin login and password? I'll check it out for you.

x YNWA x 06-13-2007 12:07 PM

Erm which module Do I make?
BBcode, template or php? It doesnt say in the instructions, just says create a module, cheers

CyberRanger 06-13-2007 12:25 PM

Quote:

Originally Posted by x YNWA x (Post 1267603)
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

x YNWA x 06-13-2007 01:01 PM

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

x YNWA x 06-13-2007 01:04 PM

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

redskins_43 06-22-2007 11:41 PM

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!!

redskins_43 06-23-2007 10:26 AM

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

CyberRanger 06-27-2007 07:10 PM

Quote:

Originally Posted by redskins_43 (Post 1274546)
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.


All times are GMT. The time now is 08:21 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.01294 seconds
  • Memory Usage 1,776KB
  • 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
  • (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