3lr0n
08-13-2006, 11:11 PM
Hi.. im new to php and i revised the docs on php.net, but i cant find anything that suits me for my "problem".
Ill try to explain:
Im using xoops, a CMS coded in php. I have a section in which i post articles, those articles are paginated by a class (pagenav.php) of xoops, but the code that build the paginate count each page using explode and the separator bbcode (pagebreak)
$body_parts = explode('[pagebreak]', $body);
body is the main text of the article and here body parts the total number of pages.
What i want to do is to assing an individual name to each page so i thought about introducing a new bbcode name which will be translated into a title, but as long as is in the $body i need a fuction that searchs the [name] string and returns the string inside [name]string for each one of the strings of the explode.
The funcionality of this is to have an article section paginated by a dropdown box instead of numbers.
Any help will be appreciated.
Ta in advance.
Ill try to explain:
Im using xoops, a CMS coded in php. I have a section in which i post articles, those articles are paginated by a class (pagenav.php) of xoops, but the code that build the paginate count each page using explode and the separator bbcode (pagebreak)
$body_parts = explode('[pagebreak]', $body);
body is the main text of the article and here body parts the total number of pages.
What i want to do is to assing an individual name to each page so i thought about introducing a new bbcode name which will be translated into a title, but as long as is in the $body i need a fuction that searchs the [name] string and returns the string inside [name]string for each one of the strings of the explode.
The funcionality of this is to have an article section paginated by a dropdown box instead of numbers.
Any help will be appreciated.
Ta in advance.