Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
News in Portal module for vBCMPS Details »»
News in Portal module for vBCMPS
Version: 0.1beta, by M4GN3T M4GN3T is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.x Rating:
Released: 12-30-2008 Last Update: Never Installs: 15
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

-! News in Portal Module For vBCMPS !-

-! Thanks to Oyadus, M4GN3T and Dexter 145 ! -

This is for use with the vBadvanced Portal not the vBCMS!

Hi all,

This is my first mod here on vB.org. I'm not really experienced in coding for vBulletin but i did achieve something i wanted to. I created a module which basically loads a news topic out of your forum within the vBCMPS portal. This gives the website a better look instead of everything looking forum-based.

I would also like to say that everyone is free to add or enchance the script, the only thing i ask is upload the one you modded/enchanced here in the topic .

Demo; http://www.ps3-sense.nl/?pageid=nieuws&t=5445

Install:

1)
Upload all contents in the upload folder.

2) Go to the admincp of your vBulletin installation and navigate to the vBCMPS tab. Click on 'Add Page' and select Module page.

Settings for page;

Page title: news
Page identifier: news

now save.

3) Now go to the vBCMPS tab again and hit 'Add module', now choose for PHP File Module. Under file to include choose news_in_portal.php

Settings for module;

Module title; Just type something
Module parent; none
Initialize BB Code Parser; yes
Initialize Forum Permissions; yes
Clean file output; yes
Use Module Wrapper Template; no

4) Now place the module on the page you created @ step 2.

5) Type the following url in the browser;

http://www.your_forum.com/?pageid=[Page identifier (step2!)]&t=[Thread number]

6) For a demo check out here:

http://www.ps3-sense.nl/?pageid=nieuws&t=5445

Show Your Support

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

Comments
  #12  
Old 01-01-2009, 08:11 PM
Robru Robru is offline
 
Join Date: Aug 2005
Location: Netherlands
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I think that's very usefull
Reply With Quote
  #13  
Old 01-01-2009, 08:14 PM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by M4GN3T View Post
If you use the standard news module it redirects every newspost to your forum, which doesn't give you a 'website' feeling. But by adding this phrase:

<span class="smallfont"><a href="{1}?pageid=[page identifier]&{3}t={2}"><b>[read more]</b></a></span>


All your newsposts gets loaded inside the portal, something vBCMPS never accomplished.

For example;
Redirect with vBCMPS: http://www.ps3-sense.nl/showthread.p...45.html?t=5445
With this module: http://www.ps3-sense.nl/?pageid=nieuws&t=5445
That's pretty good, thanks for clearing that up. I'll install soon.
Reply With Quote
  #14  
Old 01-02-2009, 02:28 AM
rm-rf rm-rf is offline
 
Join Date: May 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed 2 times,,,, will not show any threads from my forums.

vba 3.1.0

vb 3.7.4
Reply With Quote
  #15  
Old 01-02-2009, 03:10 AM
rm-rf rm-rf is offline
 
Join Date: May 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I figured it out. there is a line in the PHP file you need to edit to tell the module which forums it is allowed to use threads from. Got it working now.
Reply With Quote
  #16  
Old 01-02-2009, 02:49 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this comply with Google news qualifications?
Reply With Quote
  #17  
Old 01-02-2009, 09:27 PM
rm-rf rm-rf is offline
 
Join Date: May 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod needs a preview module. I have sort of faked it on my site by making a hidden preview thread. I took a look at the news.php and am not quite sure how to pass the generated [read more] as a link to this portal mod.

this is the line out of news.php that I would need to modify to make the [read more] links go to the new page.

Code:
 $news['message'] .= '...' . construct_phrase($vbphrase['read_more'], $vbulletin->options['bburl'], $news['threadid'], $vbulletin->session->vars['sessionurl']);
Any php gurus out there know how to recode that up to the 'threadid' to pass this url
http://www.microracing.com/?pageid=columns&t=5080

to see how I using this mod check http://www.microracing.com/index.php...ticles_columns
Reply With Quote
  #18  
Old 01-05-2009, 04:43 PM
M4GN3T M4GN3T is offline
 
Join Date: Dec 2008
Location: Holland
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rm-rf View Post
This mod needs a preview module. I have sort of faked it on my site by making a hidden preview thread. I took a look at the news.php and am not quite sure how to pass the generated [read more] as a link to this portal mod.

this is the line out of news.php that I would need to modify to make the [read more] links go to the new page.

Code:
 $news['message'] .= '...' . construct_phrase($vbphrase['read_more'], $vbulletin->options['bburl'], $news['threadid'], $vbulletin->session->vars['sessionurl']);
Any php gurus out there know how to recode that up to the 'threadid' to pass this url
http://www.microracing.com/?pageid=columns&t=5080

to see how I using this mod check http://www.microracing.com/index.php...ticles_columns
Just search for the read more phrase and replace it by this:

Code:
<span class="smallfont"><a href="{1}?pageid=columns&{3}t={2}"><b>[Read more]</b></a></span>
Reply With Quote
  #19  
Old 01-13-2009, 09:11 AM
Volvoholic Volvoholic is offline
 
Join Date: Mar 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem. Can't get any threads to show.

Where can I find the news.php file? Many thanks for putting up with a newbie

Thanks.
Reply With Quote
  #20  
Old 01-13-2009, 12:41 PM
Infopro Infopro is offline
 
Join Date: May 2003
Location: Pennsylvania
Posts: 267
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's this mean?

Quote:
Database error in vBulletin 3.8.0:

Invalid SQL:

SELECT
post.*, post.postid, post.userid, post.username, post.title, post.dateline, post.pagetext,
thread.forumid, thread.views, thread.replycount, user.*

FROM post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)


LEFT JOIN thread AS thread ON(thread.threadid = post.threadid)
WHERE post.threadid =
AND post.visible = 1
ORDER BY post.dateline asc;

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 'AND post.visible = 1
ORDER BY post.dateline asc' at line 11
Reply With Quote
  #21  
Old 02-05-2009, 12:33 PM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Infopro View Post
What's this mean?
I got same problem.
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 10:28 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.04889 seconds
  • Memory Usage 2,303KB
  • 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
  • (3)bbcode_code
  • (4)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
  • (3)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