Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Where is the function weblog_entry_alt1 located? 
Posted: 29 October 2006 03:02 AM   [ Ignore ]  
Summer Student
Total Posts:  3
Joined  2006-02-08

I’m currently edditing my more page to include pages defined by some bbcode ex: [new] to begin a new page.  However, I’m having trouble locating the weblog_entry_alt1 function to make the changes.  Where would this be?

Profile
 
 
Posted: 29 October 2006 07:54 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  2061
Joined  2002-12-06

Control Panel > Edit Templates > Choose Weblog > Weblog Single-entry Templates > Second text area down.

 Signature 

Train-ee.com - eBooks, Tutorials and Screencasts designed to help you Learn ExpressionEngine Fast.
Boyink Interactive - A charter member of the EE Pro Network.

Profile
 
 
Posted: 29 October 2006 09:44 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  3
Joined  2006-02-08

Thanks.  Not exactly what I was looking for though.  I was looking for the function within the script, not the control panel.  I’m noticing that you insert that function within your page to use it on more.php but I’m not quite sure where the function is coming from.  Weblog.fns, weblog.cp.php?  I have a block of php code that wish to insert.

*edit*
Found it on line 1621 of weblog.fns.php

However, I still don’t see where more is being echo’d out so that I can split it.  Would like to add this little tid bit of code:

// [new]

// split the entry into seperate parts
$parts = preg_split("/\[new]/",$more);
     
$count = count($parts);

// get the page variable from the browser url
$page = $_GET['page'];
$id = $_GET['id'];

echo
$parts[$page];
echo
"<p>";
echo
"Go to Page: ";
for(
$i = 0; $i < $count; $i++){
       
echo "<b><a href=\"$PHP_SELF?id=$id&page=$i\">$i</a></b> ";
}

Still need to add the prev and next links.

Profile
 
 
   
 
 
‹‹ Online users delay      Upgrade 2.4 to 2.4.1 ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 59097 Total Logged-in Users: 0
Total Topics: 70130 Total Anonymous Users: 0
Total Replies: 377977 Total Guests: 36
Total Posts: 448107    
Members ( View Memberlist )
Newest Members:  Adam Lewisharfaspaultfilterjlevinemisterdonutmazzabigtimslimsalman22joe90suntzz
Active Members: