PDA

View Full Version : Add-On Releases - vB News CMS


Mosh
07-21-2009, 10:00 PM
Please click Mark as Installed if you are using this hack.


What Does This Hack Do?hr
This is a major update to the vB News CMS hack v1.3 by davidw. Permission for me to release this hack is shown here.

It allows you to take your news from your news forums (up to 9 news forums) and display them in a category-style fashion with the ability to add new content, reply to the original story, send to a friend, and print.

This version fixes several problems with two fixes preventing database errors. Refactoring of the base-code and added functionality (adds pagination) has reduced the base-code size by more than two-thirds. The hack is now fully phrased.


Frequently Asked Questions

Question:
What if I don't like the archive name for the forum? e.g. .../archives.php?&do=forum1
Answer:
You can now change the forum1 part to whatever you want in the AdminCP options via the Forum X Archive Name. Just remember that each Forum X Archive Name need to be different from the other eight.


Question:
What if I get a blank vbnews page when I view the page?
Answer:
Did you actually select a forum for at least forum1 from the vBulletin options for this hack? If not, then you need to select one (none are selected as default).


Question:
What if BBCode on the vbnews and archive pages breaks and shows ugly markup when I view the page?
Answer:
It is probably the BBCode being truncated because of the preview word count (i.e. is shown, but was lopped off because of the word count). But, don't lose hope, as there are now AdminCP Options to control if HTML, Smilies, BBCode and IMG BBCode are displayed in the previews or not.


Question:
My custom BBCode tags do not display on the vbnews and archive pages, what do I do?
Answer:
Actually the solution is very simple. I have found that if custom BBCode tags are created in the BB Code Manager with capitals, then they will not parse, but if they are in lower case they will parse fine.

So, in your Custom BB Codes -> BB Code Manager in the AdminCP, change the BB Code Tag Name field of each of your custom BBCodes to lower case, and that will allow your custom BBCode to display. It does not seem to matter if the custom BBCode tags are in capitals or not within the posts themselves, so they do not need to be changed.



vBulletin Version Compatibilityhr
This hack can be used with vBulletin versions 3.6.0 - 3.8.7.

NOTE: I will not be upgrading this hack to vBulletin v4.0.x, as vBulletin now has the Publishing Suite.


Hack Support/Feature Requestshr
IMPORTANT: This hack is no longer supported.


Brandinghr
There is a small unobtrusive block of copyright branding text at the bottom of each page generated by this hack, which is there to promote my work and allow you to use this hack for free.

You are NOT allowed to remove my copyright branding from this hack.


Install/Uninstall Instructionshr
The readme.txt instructions file is included in attached .zip file.


Screenshotshr
Shown in this order:

vB News CMS main page
vB News CMS archive page
vB News CMS archive page with pagination
AdminCP Options


Version Historyhr
v3.8.004 - Saturday 8th August 2009
-- Added: AdminCP option: Allow HTML
-- Added: AdminCP option: Allow Smilies
-- Added: AdminCP option: Allow BBCode
-- Added: AdminCP option: Allow [IMG] BBCode
-- Updated: "vbnews.php" and "archives.php" to allow for the above AdminCP Options
-- Updated: Screenshots

v3.8.003 - Tuesday 4th August 2009
-- Fixed: If archive turned off, then archive link does not appear in "vbnews.php"

v3.8.002 - Monday 27th July 2009
-- Fixed: Pagination in the archive

v3.8.001 - Wednesday 22nd July 2009
-- Initial v3.8.x Release
-- Updated: Refactoring of the base-code and added functionality has reduced the base-code size by more than two-thirds.
-- Added: 11 AdminCP options
-- Added: AdminCP options: input validation for all non-selectable items
-- Added: AdminCP options: change name of the archive url - eg "forum1" in the url ".../archives.php?&do=forum1" (no more file edits)
-- Added: AdminCP options: for pagination (how many news items per page)
-- Added: 26 phrases - hack now fully phrased (no more hard coded words - easy to translate)
-- Added: 2 plugins
-- Added: Pagination on the archives page
-- Added: Implemented unused permission to turn archive on/off (was unused in davidw's versions)
-- Fixed: AdminCP options: can not enter incorrect usergroups, as now selected by checkboxes (prevents database errors)
-- Fixed: AdminCP options: can not enter incorrect forums, as now forums selectable by dropdown list (prevents database errors)
-- Fixed: Link to archived page removed if actually in the archive (would give a page with no content)
-- Fixed: Who's online link if in the archive


Thankshr
A big thanks goes out to davidw, whose original hack and permission to re-use his code enabled me to release this hack. Thanks also go out to Paul M who gave me permission to use some of his install code.


Show Your Appreciation hr
Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

SirHappy
07-22-2009, 10:25 AM
very nice hack! thx

Bacon Butty
07-22-2009, 03:34 PM
Looks good. Will wait for a live demo first though.

ubcforums
07-22-2009, 03:37 PM
Cool !!

saadessa
07-22-2009, 04:08 PM
cool hack installed

saadessa
07-22-2009, 05:47 PM
there is problem in viewing of the threades bb code shown with the posts

any solution for this

http://www.saad6.com/vbnews.php

Mosh
07-22-2009, 10:34 PM
there is problem in viewing of the threades bb code shown with the posts

any solution for this

http://www.saad6.com/vbnews.php
For starters looking at the page it is in arabic, which I do not understand.

But secondly you have altered the files and removed my branding (you have not purchased a branding-free license from me), and added your own instead. You are not allowed to do that, as you are breaching copyright, and that is NOT on.

I looked at the souce of the page:
<center><div class="smallfont">تعريب <a href="http://www.saad6.com">نظام ادارة محتوى الاخبار</a> v3.8.001 &copy; <a href="http://www.saad6.com">المواهب المتجددة</a> 2009</div></center>

What other alterations have you done???

I will not be providing support to you until you upload the un-altered files and if you want to remove my branding read the first post or the readme.txt file that came with the hack, so you can enquire about a branding-free license, or leave the original one intact.

Even if you restore your files back to the original files, I may still not be able to help you as I do not read arabic, and can not tell what is happening on your page, as I support English only, but I will try my best.

bartek24m
07-23-2009, 11:48 AM
t's possible to divie this news on 2 columms

like:

<table>
<tr>
<td>1</td>
<td>2</td>
</tr>
</table>

gwerzal
07-23-2009, 12:00 PM
checkin it out now

Thanks

Mosh
07-23-2009, 10:58 PM
there is problem in viewing of the threades bb code shown with the posts

any solution for this

http://www.saad6.com/vbnews.php

For starters looking at the page it is in arabic, which I do not understand.

But secondly you have altered the files and removed my branding (you have not purchased a branding-free license from me), and added your own instead. You are not allowed to do that, as you are breaching copyright, and that is NOT on.

I looked at the souce of the page:
<center><div class="smallfont">تعريب <a href="http://www.saad6.com">نظام ادارة محتوى الاخبار</a> v3.8.001 &copy; <a href="http://www.saad6.com">المواهب المتجددة</a> 2009</div></center>

What other alterations have you done???

I will not be providing support to you until you upload the un-altered files and if you want to remove my branding read the first post or the readme.txt file that came with the hack, so you can enquire about a branding-free license, or leave the original one intact.

Even if you restore your files back to the original files, I may still not be able to help you as I do not read arabic, and can not tell what is happening on your page, as I support English only, but I will try my best.
I see that you have been on the forums in the last 24 hours, but you are still infringing on my copyright. I do take copyright infringement seriously.

If you do not replace the branding with the original unaltered branding (by uploading the unaltered original files), pay for a branding-free license or remove the files (i.e. uninstall this hack) from your server within the next 48 hours (from time I amended this post), I will be forced to contact your webhost (The Planet) with a notice of Copyright Infringement under Title 17 (http://www.law.cornell.edu/uscode/17/usc_sup_01_17.html) of The United States Code (i.e. the Digital Millennium Copyright Act). This will ask them to forcibly remove my work from your site.

Edit: Also sent you a PM pointing to this request.

Mosh
07-23-2009, 11:00 PM
t's possible to divie this news on 2 columms

like:

<table>
<tr>
<td>1</td>
<td>2</td>
</tr>
</table>
It is doable, but is not something I wish to look into at the moment. However, I may look into it at a later date, but no promises.

Qwest
07-24-2009, 04:15 PM
english demo?

saadessa
07-24-2009, 05:16 PM
For starters looking at the page it is in arabic, which I do not understand.

But secondly you have altered the files and removed my branding (you have not purchased a branding-free license from me), and added your own instead. You are not allowed to do that, as you are breaching copyright, and that is NOT on.



Sorry, Mosh I apologize for me this was an attempt only to Arabization, I will remove this code from my site, I never did publish the CAPI
But you retain the rights of the programming
I apologize again
And I promise you to re-install the original

Mosh
07-24-2009, 08:08 PM
Sorry, Mosh I apologize for me this was an attempt only to Arabization, I will remove this code from my site, I never did publish the CAPI
But you retain the rights of the programming
I apologize again
And I promise you to re-install the original
Apology accepted.

But that is not what I had the issue with, the issue was with branding being altered in the files, which I stipulated was to be left untouched, i.e. links in this hack thread and my vbulletin.org profile (along with my name in English) left as they are. As long as you comply with that, I do not mind you change every other phrase to Arabic.

Mosh
07-24-2009, 08:10 PM
english demo?
Nope, only the screenshots, unless someone who has installed this hack wants to post the url to their installation of this hack as a demo.

masterweb
07-26-2009, 02:38 PM
Downloaded and installed without problems (even if i'm still working on it) so if someone needs an Online Demo go to: http://www.onlinewebmarket.net/vbnews.php

Mosh
07-27-2009, 12:11 AM
Update: v3.8.002 - Monday 27th July 2009
-- Fixed: Pagination in the archive

Spotted this pagination issue viewing masterweb's demo. Thanks for the demo, added to first post :)

masterweb
07-27-2009, 04:07 PM
Hi Mosh, thanks for the update (i downloaded and re-installed the hack) but to be honest i'm not sure about the "Pagination issue in the archive", i mean; i don't see anything new from the last product i installed so pls explain a bit what's this issue it's about. Thanks in advance and really thanks for this hack :p

Mosh
07-27-2009, 05:08 PM
Hi Mosh, thanks for the update (i downloaded and re-installed the hack) but to be honest i'm not sure about the "Pagination issue in the archive", i mean; i don't see anything new from the last product i installed so pls explain a bit what's this issue it's about. Thanks in advance and really thanks for this hack :p
The issue was, that if you tried going to pages beyond page 1 in the archive (assuming you had more than one page), you would run into issues with an empty do= as part of the url (such as http://www.onlinewebmarket.net/archives.php?do=&page=2), which would give a no permissions screen with a prompt to log in, and then give you a blank page.

masterweb
07-27-2009, 07:24 PM
Hmmmm now i see what you mean, in fact following the previous URL you posted for a second page in archives i get:

masterweb, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Please note i'm already logged in, i'm Admin (so of course i have full rights). I downloaded the updated Zip file attached to your first post, i uploaded once again these 2pages to my root overwriting the old ones and i went to my AdminCP and imported once again the XML product checking the "Overwrite" option for the import... What i'm doing wrong ?

Mosh
07-27-2009, 10:56 PM
Hmmmm now i see what you mean, in fact following the previous URL you posted for a second page in archives i get:



Please note i'm already logged in, i'm Admin (so of course i have full rights). I downloaded the updated Zip file attached to your first post, i uploaded once again these 2pages to my root overwriting the old ones and i went to my AdminCP and imported once again the XML product checking the "Overwrite" option for the import... What i'm doing wrong ?
It was an example of the problem in v3.8.001 you asked me to explain, it was not actually meant to work as it is an invalid url, the permissions message is how I am handling the error with the empty do= and v3.8.002 prevents this from happening in the first place. So, not to worry, you installation works fine now as I checked it out already ;)

You now get http://www.onlinewebmarket.net/archives.php?do=forum1&page=2 (notice the do=forum1 now?) That is what the update fixed.

TheLastSuperman
07-27-2009, 11:07 PM
Another great mod by Mosh ;)

Marked as installed but it will be tomorrow, I will be modifying to suit a Online Gaming Tournament forum so when done I'll provide a link as a demo :D.

Thanks again!

S-MAN

masterweb
07-29-2009, 03:45 PM
Now i fully understand, thanks once again for this hack dude :D

It was an example of the problem in v3.8.001 you asked me to explain, it was not actually meant to work as it is an invalid url, the permissions message is how I am handling the error with the empty do= and v3.8.002 prevents this from happening in the first place. So, not to worry, you installation works fine now as I checked it out already ;)

You now get http://www.onlinewebmarket.net/archives.php?do=forum1&page=2 (notice the do=forum1 now?) That is what the update fixed.

Mosh
08-04-2009, 10:30 AM
Update: v3.8.003 - Tuesday 4th August 2009
-- Fixed: If archive turned off, then archive link does not appear in "vbnews.php"

I noticed this on another installation that had the archive disabled. It is not a fault, but if the archive is not active, then why display the link?

vijayninel
08-06-2009, 03:46 AM
How can one make the news page use a particular style instead of the user selected style ?

axenvb
08-06-2009, 04:55 PM
Installed. It works quite well. Thank you.

vijayninel
08-07-2009, 03:36 AM
there is problem in viewing of the threades bb code shown with the posts

any solution for this

http://www.saad6.com/vbnews.php

I figured out what's going wrong..there is a problem with the CMS. If the BB code gets cut off halfway then it wont render and will be shown.

for eg.If you put [ SIZE=4]and the [/SIZE] comes after the "Read More" then [SIZE=4] will be seen and the text wont change to size 4. the BB code must start and end before the "Read more". This is very inconvenient and reduces formatting options.

Mosh
08-08-2009, 06:45 AM
I figured out what's going wrong..there is a problem with the CMS. If the BB code gets cut off halfway then it wont render and will be shown.

for eg.If you put [ SIZE=4]and the [/size] comes after the "Read More" then [size=4] will be seen and he text wont change to size 4. the BB code must start and end before the "Read more". This is very inconvenient and reduces formatting options.
I have not replicated it, but looking at the code I can see how it can happen.

So, in the next few minutes I will be releasing a new version that has four additional AdminCP options to control various factors when viewing a news preview on the main vB News or Archive pages. These options are to allow or not:

HTML
Smilies
BBCode
[IMG] BBCode (independant of BBCode)


So, in your case you would not allow HTML, BBCode or IMG either, and it will not break the post, as it is not parsed.

But, when viewing the full post, by clicking [View More] you will see the correct markup.

Mosh
08-08-2009, 07:07 AM
Update: v3.8.004 - Saturday 8th August 2009
-- Added: AdminCP option: Allow HTML
-- Added: AdminCP option: Allow Smilies
-- Added: AdminCP option: Allow BBCode
-- Added: AdminCP option: Allow [IMG] BBCode
-- Updated: "vbnews.php" and "archives.php" to allow for the above AdminCP Options
-- Updated: Screenshots

masterweb
08-08-2009, 01:19 PM
Thanks for your last release Mosh, i updated it on my board today .

Freddyos
08-12-2009, 03:57 PM
Hey,

first: nice hack
second: If I post a Thread with Pictures (with html-code) they aren't shown at vbnews.php

solutions?

Edit: Can I add this BBCode PIC to your Addon? But the vbnews.php show only the code, not the picture

Mosh
08-13-2009, 03:00 AM
Hey,

first: nice hack
second: If I post a Thread with Pictures (with html-code) they aren't shown at vbnews.php

solutions?


Can you post the url to your installation so I can have a look.

Edit: Can I add this BBCode PIC to your Addon? But the vbnews.php show only the code, not the picture

This hack should automatically uses custom BBCode (as long as Allow BBCode is set to Yes).

So again, can you post the url to your installation so I can have a look.

Freddyos
08-13-2009, 12:19 PM
<a href="http://boyce-avenue.de" target="_blank">http://boyce-avenue.de</a>

Allow BBCode is set to Yes - RIGHT

Mosh
08-14-2009, 03:16 AM
http://boyce-avenue.de

Allow BBCode is set to Yes - RIGHT
Mmmm....yes, I see the problem.

OK, lets see if I can fix it.

I will get back to you in the next day or so, hopefully with a solution.

Freddyos
08-14-2009, 12:38 PM
Okay, thanks for support :)

Mosh
08-15-2009, 06:23 AM
Hey,

first: nice hack
second: If I post a Thread with Pictures (with html-code) they aren't shown at vbnews.php

solutions?
In the vBulletin options for this hack, set Allow HTML? to Yes for the embedded Youtube video to show, as you are pasting native html into the page (and have html enabled in that forum), it does not look like you have a BBCode for that video (unless you are using a hack such as AME to embed the video).

Edit: Can I add this BBCode PIC to your Addon? But the vbnews.php show only the code, not the picture
Edit both archives.php and vbnews.php, find:
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

Change it to:
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list('', true));

Tell me if that enables you to use your [imgleft] and [imgright] tags.

If it does work, then I will add an option to allow for use of custom tags in the options and release a new version.

Freddyos
08-15-2009, 11:51 AM
I have changed both archives.php and vbnews.php but no picture.

Yeah, i used the Code from YouTube to embemd this video. I dont care about it.

The IMG is more important for me.

Mosh
08-15-2009, 09:01 PM
I have changed both archives.php and vbnews.php but no picture.

Yeah, i used the Code from YouTube to embemd this video. I dont care about it.

The IMG is more important for me.
You are going to need to tell me what code you actually use for your [imgleft] and [imgright] BBCode tags, and a url to a thread that uses the tags, so I can have a play around with/see the custom BBCodes causing the issue.

Mosh
08-17-2009, 02:44 AM
I have changed both archives.php and vbnews.php but no picture.

Yeah, i used the Code from YouTube to embemd this video. I dont care about it.

The IMG is more important for me.
Actually the solution is very simple :cool: but took me so long to figure out :(

I have found that if custom BBCode tags are created in the BB Code Manager with capitals, then they will not parse, but if they are in lower case they will parse fine (the screenshot attached will show that it is working, I recreated your [imgleft] tag and copied your post text to my test forum to test out the solution).

So, in your Custom BB Codes -> BB Code Manager, in the BB Code Tag Name field rename your [IMGLEFT] and [IMGRIGHT] tags to [imgleft] and [imgright] respectively, and that will allow your images to show up.

You can remove the file changes that I asked you to do earlier :)

Freddyos
08-17-2009, 02:15 PM
GREAT!! Thank you very much for supporting :)

It works :)

Mosh
08-17-2009, 09:10 PM
GREAT!! Thank you very much for supporting :)

It works :)
You are most welcome :)

Freddyos
09-19-2009, 06:44 PM
Heey, another question ;)

Is it possible for 2 forums side by side ?

look at the picture, then you now what I mean :)

Mosh
09-19-2009, 08:54 PM
Heey, another question ;)

Is it possible for 2 forums side by side ?

look at the picture, then you now what I mean :)
It is probably possible, but not without a lot of alterations to the code.

Freddyos
09-21-2009, 08:35 AM
I can html/css and I think I have to change some templates? Is it right?

Can you help me with some advices?

Freddyos
09-21-2009, 08:46 AM
Oh damn, I see it's a lot of PHP :(

Mosh
09-21-2009, 10:53 AM
Heey, another question ;)

Is it possible for 2 forums side by side ?

look at the picture, then you now what I mean :)

It is probably possible, but not without a lot of alterations to the code.

I can html/css and I think I have to change some templates? Is it right?

Can you help me with some advices?

Oh damn, I see it's a lot of PHP :(
Without spending a couple of hours looking into it, I can not even begin to suggest anything apart from saying that it would definately need a lot of the php code altered along with the xhtml templates.

I am not really interested in looking into it at this time, but may look into it at a later date if I would find a use for it on one of my sites.

Freddyos
09-22-2009, 06:43 PM
all right ;)

Mosh
11-28-2009, 02:39 AM
I will not be upgrading this hack to vBulletin v4.0.x, as vBulletin now has the Publishing Suite.

Mosh
01-02-2010, 12:49 AM
Hi all,

It is with regret that after over 4 years (and thousands of hours) spent providing free support for my free hacks released here, as of today I will no longer be able to provide support for free.

This is due to being unemployed for a while, being strapped for cash and unable to rely on the virtually non-existant donations from here to help to pay the bills or put food on the table for my family. I am now providing all support for my free hacks released here over at Wolfshead Solutions (http://www.wolfshead-solutions.com) via an annual support subscription (for a small fee).

It does not mean I will be no longer release free hacks, I will, but I will just no longer be supporting them for free.

My free hacks have and always will remain free to download and use. And so will updates/bug fixes.

I will be releasing more free hacks, but if you require any support at all for those free hacks, you will need to purchase an annual support subscription over at Wolfshead Solutions to receive support.

I am really sorry I have to do this, but revenue generated by my programming gigs are now my only source of income, and I can no longer afford the luxury of providing free support here, when that time can be spent creating new commerial products, doing paid work requests or providing paid support to pay the bills.

Thank you for the understanding.

Regards,

Mosh.

Frank Sinatra
01-15-2010, 05:56 PM
Thanks works perfect
waiting for someone who fix the bbcode error

Mosh
01-08-2011, 01:36 AM
Hi all,

Free support has now been moved back to vBulletin.org.

Please see the first post for more information (and also this thread (http://www.wolfshead-solutions.com/threads/444-Our-quot-vBulletin.org-Hacks-Support-quot-subscription-has-been-scrapped) at Wolfshead Solutions).

Enjoy :)

Regards,

Mosh Shigdar - Wolfshead Solutions.