Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Content Pages for vB 4.0 Details »
Content Pages for vB 4.0
Mod Version: 1.1.0, by ccampo (Coder) ccampo is offline
Developer Last Online: Aug 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.3 Rating: (8 votes - 4.63 average) Installs: 39
Released: 28 Mar 2010 Last Update: 16 Oct 2012 Downloads: 295
Not Supported DB Changes Uses Plugins Template Edits Auto-Template Additional Files Re-usable Code Translations  

Content pages is the result of a need for a module that would handle normal TEXT, HTML and/or PHP pages within vBulletin, this need came after an old web site I was helping to administer switched from phpBB and phpNuke to vBulletin, after the migration lots of content pages were not migrated and there was not an easy way to achieve that either and these content pages were needed as they contain valuable information for the club. I searched for a similar mod that can handle this kind of information but couldnít find any that would fit the needs of that site, so I decided to create my own and share it as freeware so everybody can benefit from it.

The power of this MOD lays in the fact that it can accept PHP, HTML and/or TEXT as the content for the page, so the use of this MOD is almost unlimited with almost no restriction.

Before adding your pages, please make sure they work as expected on a simple PHP, HTML or TEXT page without any error, making sure all tags are properly closed, and that the page do not contain tags which may affect your overall vBulletin style. You may apply any local style, though, but make sure those new css styles will not interfere with the original vBulletin styles.

Once the page has been tested as a basic php, html or text page you can just add a content page and paste the php/html/text code into the content of the new page, the same apply to the signature of the page which can also be a php, html or text code and it is appended to the content page at the end before rendering the page, the content and the signature are considered to be from the same type.

Features:
- Manage Content Pages
- PHP, HTML and TEXT pages supported
- Navtab plugin
- vB4.0.x compatible

Take a look at the contentpages-v1.0.0.pdf document included in the zip file for full description, installation and upgrade instructions.

I hope you like it.

Demo at :
http://www.o-r-c-a.com/forum/contpages.php

Latest version:
1.1.0 production

If you find bugs please let me know, I cannot dedicate to it 100%, but I can assure you Iíll find the time to fix any problem found, also if thereís any enhancement you think will be useful please also let me know and Iíll see what can I do to include it in a newer release.
This is my first vBulletin MOD, Iíve just started a couple of months ago when the club I am a member of acquired a vB 4.0 license, and prior to that I had no experience on this software, only as a user, not even moderator, on other forums.

Please remember to click "Mark as Installed" if you use this modification.
Also feel free to nominate this modification for the MOTM, and/or use the donate link provided (Support Developer).

Thanks to Dr.osamA for the Arabic translation.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	cp_acp.jpg
Views:	803
Size:	81.2 KB
ID:	114820   Click image for larger version

Name:	cp_cats.jpg
Views:	1170
Size:	38.1 KB
ID:	114821   Click image for larger version

Name:	cp_tags.jpg
Views:	1297
Size:	33.5 KB
ID:	114822   Click image for larger version

Name:	cp_pages.jpg
Views:	1408
Size:	54.8 KB
ID:	114823  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 28 Mar 2010, 13:24
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Real name: Cesar
Originally Posted by Junkie View Post
How did you fix the page width problem?
Fix was uploaded, you can download it again, it was a problem with the template.
Reply With Quote
  #17  
Old 28 Mar 2010, 17:16
NFLfbJunkie NFLfbJunkie is offline
 
Join Date: Sep 2006
Since I can not get your MOD to work, and wish I could, I installed another pages MOD. But this one has the same problem that yours initially did - the pages stretching across the entire page. I posted this in the MOD's thread, but still haven't gotten a response. Can you tell me what the fix was for your MOD so I can see if it possibly might apply to this one. Thanks.
Reply With Quote
  #18  
Old 28 Mar 2010, 22:36
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
uhhh. So after getting the root database privileges changed I get this error now instead.
Database error in vBulletin 4.0.2:

Invalid SQL:
CREATE VIEW `cp_cats` (cp_catsid, title) AS
SELECT `cid`, `title` FROM `vb_contentpages_categories`;

MySQL Error : Table '*****.vb_contentpages_categories' doesn't exist
Error Number : 1146
Request Date : Sunday, March 28th 2010 @ 04:31:24 PM
Error Date : Sunday, March 28th 2010 @ 04:31:25 PM
Script : http://mysite/admincp/plugin.php?do=productimport
Referrer : http://mysite/admincp/plugin.php?do=productadd
IP Address : 75.172.232.60
Username : yez
Classname : vB_Database
MySQL Version : 5.1.30
Reply With Quote
  #19  
Old 29 Mar 2010, 00:07
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Real name: Cesar
I've found a big security hole when displaying php content pages so I've removed that feature from this mod, displaying php code also affects the look and feel of the vBulletin's style of the site and forum so for now, no php support, I've uploaded a new beta version 0.8.0 so please download and use that one instead.
Reply With Quote
  #20  
Old 29 Mar 2010, 00:14
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Real name: Cesar
Originally Posted by mandingo View Post
uhhh. So after getting the root database privileges changed I get this error now instead.
That's weird, that error would only happen if the xml file was modified in some way to execute the SQL commands in some other order, the error means that the needed table to create the view doesn't exist, and that cannot be possible because that table is created right before creating the view, unless that create table also failed?.

I'd suggest you to deinstall "Content Pages" products, then use phpMyAdmin to make sure tables vb_contentpages and vb_contentpages_categories do not exist, otherwise drop them and then import the new 0.8.0 xml file again.

good luck.
Reply With Quote
  #21  
Old 29 Mar 2010, 00:38
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Real name: Cesar
Originally Posted by Junkie View Post
Since I can not get your MOD to work, and wish I could, I installed another pages MOD. But this one has the same problem that yours initially did - the pages stretching across the entire page. I posted this in the MOD's thread, but still haven't gotten a response. Can you tell me what the fix was for your MOD so I can see if it possibly might apply to this one. Thanks.
My fix will not work for his mod.
The fix will have to come from him, because it requires changing the template and the php code as well, an easy workaround would be to modify just the template, I haven't tested that though, but here it is :

look for :
<link rel="stylesheet" type="text/css" href="clientscript/reset-fonts-bf.css" />

and change it to:
<vb:if condition="$pl['phpsupport']">
<link rel="stylesheet" type="text/css" href="clientscript/reset-fonts-bf.css" />
</vb:if>
Reply With Quote
  #22  
Old 29 Mar 2010, 06:30
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Real name: Cesar
One new version was released v0.9.0, this one now supports PHP content pages.
Beware that if you have already installed the previous v0.8.0 version you'll need to upgrade the product, the instructions are included in the contentpages-v0.9.0.pdf document included in the zip file.
But here they are too:
1. Take an export of the TABLE_PREFIX.contentpages and TABLE_PREFIX.contentpages_categories tables, using phpMyAdmin is the easiest way.
2. Uninstall old “Content Pages” product from vB Administrator Control Panel
3. Install new “Content Pages” version 0.9.0 product from vB Administrator Control Panel
4. Import the TABLE_PREFIX.contentpages and TABLE_PREFIX.contentpages_categories tables that were exported on step 1.
Reply With Quote
  #23  
Old 29 Mar 2010, 10:00
Storyteller69 Storyteller69 is offline
 
Join Date: Jun 2008
Originally Posted by mandingo View Post
Database error in vBulletin 4.0.2:

Invalid SQL:
CREATE VIEW `cp_cats` (cp_catsid, title) AS
SELECT `cid`, `title` FROM `vb_contentpages_categories`;

MySQL Error : Table '*****.vb_contentpages_categories' doesn't exist
Error Number : 1146
Request Date : Sunday, March 28th 2010 @ 04:31:24 PM
Error Date : Sunday, March 28th 2010 @ 04:31:25 PM
Script : http://mysite/admincp/plugin.php?do=productimport
Referrer : http://mysite/admincp/plugin.php?do=productadd
IP Address : 75.172.232.60
Username : yez
Classname : vB_Database
MySQL Version : 5.1.30
I get the same error when i try to install version 0.9.0 the first time with this Stack Trace:
#0 vB_Database->halt() called in [path]/includes/class_core.php on line 421
#1 vB_Database->execute_query() called in [path]/includes/class_core.php on line 439
#2 vB_Database->query_write() called in [path]/includes/adminfunctions_plugin.php(450) : eval()'d code on line 12
#3 run_queries() called in [path]/includes/adminfunctions_plugin.php(450) : eval()'d code on line 50
#4 eval() called in [path]/includes/adminfunctions_plugin.php on line 450
#5 install_product() called in [path]/admincp/plugin.php on line 1714

The tables where created but with "my" prefix vb_3 and not only vb_. On a local-testforum without a table-prefix i get the same error. Can the "wrong" prefix be the reason for the error?
Reply With Quote
  #24  
Old 29 Mar 2010, 13:08
Miras Miras is offline
 
Join Date: Mar 2009
there's a bug inside the xml

search for

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #25  
Old 29 Mar 2010, 13:33
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Real name: Cesar
Originally Posted by Miras View Post
there's a bug inside the xml
Thanks a lot Miras, new zip file with the fix was uploaded.
Reply With Quote
  #26  
Old 29 Mar 2010, 13:35
Storyteller69 Storyteller69 is offline
 
Join Date: Jun 2008
Also thanks from me Miras, works now!
Reply With Quote
  #27  
Old 29 Mar 2010, 22:12
abdicar abdicar is offline
 
Join Date: Oct 2006
hello bro, when do you think this will be ready for production forums?
Reply With Quote
  #28  
Old 30 Mar 2010, 00:05
ccampo's Avatar
ccampo ccampo is offline
 
Join Date: Feb 2010
Real name: Cesar
Originally Posted by abdicar View Post
hello bro, when do you think this will be ready for production forums?
Even though this MOD still has the BETA label in it I think it is ready for production, I'll give one more week for others to test it and report problems (if found) before I remove the beta label and create the first production version.

I've done lots of tests, but I'm sure I haven't tested everything that's why I need your help finding bugs or problems.
Reply With Quote
  #29  
Old 30 Mar 2010, 00:33
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Originally Posted by ccampo View Post
Thanks a lot Miras, new zip file with the fix was uploaded.
Will try again.
Reply With Quote
  #30  
Old 30 Mar 2010, 04:54
Skreech94 Skreech94 is offline
 
Join Date: Nov 2009
I'm getting this error when I click Add page

Database error in vBulletin 4.0.2:

Invalid SQL:
SELECT title, cp_catsid FROM cp_cats ORDER BY title;

MySQL Error : Table 'mydatabase_consoledge.cp_cats' doesn't exist
Error Number : 1146
Request Date : Monday, March 29th 2010 @ 11:10:55 PM
Error Date : Monday, March 29th 2010 @ 11:10:55 PM
Script : http://unlockedgamer.com/admincp/con...php?do=addpage
Referrer : http://unlockedgamer.com/admincp/index.php?do=nav
IP Address : My IP
Username : Username
Classname : vB_Database
MySQL Version : 5.1.30

Last edited by Skreech94; 30 Mar 2010 at 05:12.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 21:46.

Layout Options | Width: Wide Color: