vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Content Management System - Baisic v1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=67682)

lichtflits 07-31-2004 09:05 AM

Now you shoud start adding options like news or just make the php inlcude work in the templates. :P

MrNase 07-31-2004 02:50 PM

A feedback on suggestions would be a good start :p

Here's the changes to convert the dropdown box to an unordered list (as seen here):

Open cms.php and find
Code:

  $pages.="<b>{$cats['category_name']}</b><br/><select onchange='javascript:doRedirect(this.options[this.options.selectedIndex].value);' class='bginput'><option value=''>Select A Page</option>";
replace it with
Code:

  $pages.="<b>{$cats['category_name']}</b><br/><ul>";
Now find
Code:

$pages.="<option value='cms.php?{$session[sessionurl]}view={$page['page_var']}' selected>{$pagex['page_name']}</option>\n";
and replace it with
Code:

$pages.="<li id=\"active\"><a href='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</a></li>\n";
And now find:
Code:

  $pages.="<option value='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</option>\n";
and replace it with
Code:

$pages.="<li><a href='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</a></li>\n";
now find:
Code:

  $pages.="</select><br/>";
and replace it with
Code:

  $pages.="</ul><br/>";
Done :)

opus 07-31-2004 10:12 PM

that list wouldn't be cool if someone ran a site with like 50 articles in 7 different categories.

MrNase 08-01-2004 01:11 PM

You could modify that list with CSS so that it uses less space ;)

That list is meant as an alternative to that select box this hack uses by default. You are right, not everybody can use it but Iam sure some of you will :)

blue_chi 10-30-2004 01:02 AM

I am having a problem with the page. :( I tried using a php include template to include external pages to my CMS page, but I am getting some junk code around, could someone please help me at this thread..

https://vborg.vbsupport.ru/showthread.php?t=71153

blue_chi 11-11-2004 09:36 AM

I installed this and now I love it. :D

jluerken 12-18-2004 11:25 PM

Quote:

Originally Posted by blue_chi
I installed this and now I love it. :D

Can this version be updated to use table prefixes?

Lionel 03-14-2005 09:04 PM

Is there a way to implement previous next?

mikehawk 07-17-2005 12:59 AM

Holy crap, is there a working demo so I can see this? I thank no tolerance for making this hack, but jesus, someone post a good link to see this bad boy in action.

MRGTB 09-15-2005 12:46 AM

I installed a cms that uses a drop download menu. I think there is some code in the the two queries I ran that have some bearing to the drop down menu.


Here are the two queries:

Code:

CREATE TABLE `cms_categories` (

  `cid` int(15) NOT NULL auto_increment,

  `category_name` varchar(255) NOT NULL default '',

  PRIMARY KEY  (`cid`)

) TYPE=MyISAM;

and this:

Code:

CREATE TABLE `cms_pages` (

  `pid` int(15) NOT NULL auto_increment,

  `page_name` varchar(255) NOT NULL default '',

  `page_var` varchar(255) NOT NULL default '',

  `page_content` text NOT NULL default '',

  `page_content_un` text NOT NULL default '',

  `cat` int(15) NOT NULL default '0',

  PRIMARY KEY  (`pid`)

) TYPE=MyISAM;


What I want to know is this. What do the three numer "15" listed in the two queries do and what do they refer too?

Because in the cms.php file I have changed the two number 14 to 27 that controls how long your text can be in the Drop Down Menu's before they are replaced with "...", So I can display longer names in the drop down menu.

Do I also have to alter them numbers also in the queries.

Because the standard length in the cms.php file was 14 and the queries 15. Does this mean if I changed it to 27 in the cms.php file, I have to change the querie numbers from 15 to 28.


All times are GMT. The time now is 04:06 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.01099 seconds
  • Memory Usage 1,739KB
  • 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
  • (10)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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