The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vbAdvanced Addon for AboutToday Details »» | |||||||||||||||||||||||||
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
|
Comments |
#52
|
|||
|
|||
Quote:
Quote:
|
#53
|
|||
|
|||
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>'; } } |
#54
|
||||
|
||||
That looks good. Can you PM me your site url along with an admin login and password? I'll check it out for you.
|
#55
|
|||
|
|||
Erm which module Do I make?
BBcode, template or php? It doesnt say in the instructions, just says create a module, cheers |
#56
|
||||
|
||||
Quote:
Quote:
|
#57
|
|||
|
|||
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 |
#58
|
|||
|
|||
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 |
#59
|
|||
|
|||
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!! |
#60
|
|||
|
|||
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 |
#61
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|