Recent Topics

1 Sep 24, 2008 04:03    

My b2evolution Version: 2.x

Hello

I have posted on this forum recently regarding a blog that I am working on, and have run into some more issues that I've been unable to troubleshoot. So to anyone who has already read my posts or helped me with my questions, I greatly appreciate your patience. Please take a look at this "Extended Post" permalink from my blog:

http://www.vaughnstreet.com/features/index.php/newsandprojects/2008/09/17/never-give-up#more24

I have 3 small issues I'm trying to solve:

1.There is a link in the upper portion of the page in the tan band that reads "California Road Studios". I want it to say "Next Post" instead of actually saying the [u]name[/u] of the next post. And when you click that link, it takes you to the next permalink post, where you'll see two new links in that same spot reading "Never Give Up" and "NY Times Best-Seller". I want those links to read "Previous Post" and "Next Post", respectively. So essentially, they will link to the same place, but will just be titled generically instead of referencing each post name.

2.In the "Title" portion of the page, also contained in the same tan band at the top, right now this page reads "Never Give Up", which of course is the title of the post. Instead of reading the title of the post, I simply want to put a link here that says "Latest Entries" and links back to the blog home (it will be the same on every permalink).

3. On IE 6 and 7, the bottom portion of my post is getting cut off (the area where users can leave comments) and being overlapped by my footer. I already tried setting the bPosts overflow to "visible." Does anyone have any idea what's causing that?

Thanks again for any assistance that anyone can offer!

2 Sep 25, 2008 21:10

Actually, item number 1 is most pressing for me - does anyone know how to replace the text displaying each blog post name with the more generic text "Previous Post" and "Next Post", but still have it link to the correct corresponding post? I am hoping to hit a launch deadline by tomorrow, but if no one has a solution then that okay! Thanks again for the help.

3 Sep 25, 2008 22:52

murph402 wrote:

Actually, item number 1 is most pressing for me - does anyone know how to replace the text displaying each blog post name with the more generic text "Previous Post" and "Next Post", but still have it link to the correct corresponding post? I am hoping to hit a launch deadline by tomorrow, but if no one has a solution then that okay! Thanks again for the help.

I suppose you want to replace the generic post tittle for the prev/next items to stable labels like 'previous' and 'next' .. so find

<?php
	// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
	item_prevnext_links( array(
			'block_start' => '<table class="prevnext_post"><tr>',
			'prev_start'  => '<td>',
			'prev_end'    => '</td>',
			'next_start'  => '<td class="right">',
			'next_end'    => '</td>',
			'block_end'   => '</tr></table>',
		) );
	// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>


in your single.main.php (or index.main.php if you dont have single, depends on your skin..

and replace it with this

<?php
		// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
		item_prevnext_links( array(
				'template' => '$next$$prev$',
				'block_start' => '<div class="nav_right">',
				'next_start'  => '',
				'next_text' => 'mynextitemlabel',
				'next_end'    => ' ',
				'prev_start'  => '',
				'prev_text' => 'myprevitemlabel',
				'prev_no_item' => '',
				'prev_end'    => '',
				'block_end'   => '</div>',
			) );
		// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
	?>

and change the 'mynextitemlabel' names to whatever you like

4 Sep 26, 2008 00:06

tilqicom's trick will definitely solve your first issue. for the IE issue, try putting

<br style="clear:both;" />

right before

  <div id = "footer_wrapper">

i can't really test that out, though. if only IE had a webdeveloper plugin like Firefox.

5 Sep 26, 2008 03:04

tilqicom, your solution worked perfectly...thank you so much. Regarding item number 2 from my initial post, obviously I have to edit this code:


                    <?php
		// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
		request_title( array(
				'title_before'=> '<h2>',
				'title_after' => '</h2>',
				'title_none'  => '',
				'glue'        => ' - ',
				'title_single_disp' => true,
				'format'      => 'htmlbody',
			) );
		// ----------------------------- END OF REQUEST TITLE ----------------------------
	?>

If someone clicks on a category, I still want the category name to display in that spot. However, if someone is on an individual post, I just want there to be a link there that takes users back to the blog's home URL...thanks again.

brandonh, that's a good thought about using the clear property...unfortunately it didn't work. I think it's because of my "sticky footer" layout...I have 75 pixels of padding added to the "container content" division. If you are interested, take a look at my Global CSS here http://www.vaughnstreet.com/css/global.css and you'll see how the footer is instructed to bump up into those 75 pixels of padding so that it always sticks to the bottom of the browser page. I'm already using the clear property in "container-content:after", but for some reason it's not working on the blog skin.

Thank you both so much for your time.

6 Sep 26, 2008 16:15

you could just set 'title_single_disp' as false instead of true. Then your category and archive titles will still show up, but not your post titles.

As far as the link, if you have a single.main.php you can add a link to the blog home before showing the posts.

oh yeah, i think ie does something weird with padding and margin consolidation, unless there is a border between them. try playing with border settings.

8 Sep 26, 2008 18:20

haha thanks. that's just my signature. i saw your link in your first post, but a lot of people ask for help without posting a link.

9 Sep 26, 2008 19:55

youve said it so many times you got sick of writing it? i got you, haha.

10 Oct 13, 2008 17:23

A quick follow-up question if anyone would be willing to help me out. I'm starting to get a lot of pages adding up as I add more and more posts to my blog:

http://www.vaughnstreet.com/features/index.php/newsandprojects/

Is there a way to have only links to page numbers 1-5, followed by a "more" button, like this: <<1 2 3 4 5 more>>

And then when clicked, "more" shows “6 7 8 9 10” and collapses the previous 5 pgs and following 5 pgs. I know it must have something to do with this code in my index.main.php file:

 
<?php
		// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
		mainlist_page_links( array(
				'block_start' => '<p class="right">'.T_('Page:   ').'  <strong>',
				'block_end' => '</strong></p>',
			) );
		// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
	?>

Thanks!!

11 Oct 13, 2008 18:06

it already will look like this when you have enough pages:

1 2 3 4 5 6 7 8 9 10 11 ... 70 >>

if you are on one of the pages in the middle, it will show the dots in the middle. like this:

<< 1 ... 8 9 10 11 12 13 14 15 16 17 18 ... 70 >>

is that not good enough?

you'd have to write a script for what your asking, but you can play with how many links show and where using these params

<?php
        // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
        mainlist_page_links( array(
                'block_start' => '<p class="right">'.T_('Page:   ').'  <strong>',
                'block_end' => '</strong></p>',
                'list_span' => [[[your int here with no brackets(default 11)]]],
                'scroll_list_range' => [[[your int here with no brackets(default 5)]]],
            ) );
        // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
    ?> 

edit: i apparently don't know what scroll_list_range is because after changing it I did not see results. You are at ten pages though, so if you change the list_span to lower than 10 you will see results.

12 Oct 14, 2008 15:35

brandon - that code works exactly how I wanted it to. all i needed was the 'list_span' property. once again, thank you very much for your help.

13 Feb 03, 2009 19:25

Is there a way to get the page numbers to display without the 3 dots on the left and right? I'd rather they displayed the actual page numbers.

Ex...

1 2 3 4 5 6

Instead of

1 .. 3 4 5 ..

14 Feb 03, 2009 20:42

Make the list span 1000 or some number higher than your number of pages.

15 Feb 04, 2009 00:04

Still does the ... on either side when you're on anything other than the main page

16 Feb 04, 2009 04:51

what is your url? mine seems to be working fine.

what number did you use? i'm not sure if there is a maximum that would skip out of the function?

anyway, http://bhphp.com/ seems to be working. i changed my site to only show one post per page so i could get a lot of pages, then i set my

'list_span' => 700,

edit: just noticed what you were talking about. my pages on the bottom show all the pages, but the pages at the top have the dots. i'm researching it.

18 Feb 04, 2009 05:40

You're gonna love this! I played with that stuff a whole bunch before (a) giving up and (b) not cleaning out all the play versions.

// PREV/NEXT PAGE LINKS (POST LIST MODE)
mainlist_page_links( array(
		'block_start' => '<div class="navigation">',
		'block_end' => '</div>',
		'prev_text' => '&lt;&lt;',
		'next_text' => '&gt;&gt;',
	) );

mainlist_page_links( array(
		'block_start' => '<p class="center"><strong>',
		'block_end' => '</strong></p>',
		'links_format' => '$prev$ :: $next$',
		'prev_text' => '&lt;&lt; '.T_('Previous'),
		'next_text' => T_('Next').' &gt;&gt;',
	) );

mainlist_page_links( array(
		'block_start'  => '<table class="prevnext_post"><tr>',
		'block_end'    => '</tr></table>',
		'links_format' => '<td>$prev$</td><td class="right">$next$</td>',
		'prev_text'    => '&lt;&lt; '.T_('Previous'),
		'next_text'    => T_('Next').' &gt;&gt;',
	) );

mainlist_page_links( array(
		'block_start' => '<div class="nav_right">',
		'block_end' => '</div>',
		'links_format' => '$prev$ $next$',
		'prev_text' => '<img src="img/prev.gif" width="29" height="29" alt="'.T_('Previous').'" title="'.T_('Previous').'" />',
		'next_text' => '<img src="img/next.gif" width="29" height="29" alt="'.T_('Next').'" title="'.T_('Next').'" />',
		'no_prev_text' => '',
		'no_next_text' => '<img src="'.$rsc_url.'/img/blank.gif" width="29" height="29" alt="" class="no_nav" />',
	) );

mainlist_page_links( array(
		'block_start' => '<p class="center"><strong>',
		'block_end' => '</strong></p>',
		'links_format' => '[ $first$ &lt;&lt; $prev$ :: $next$ &gt;&gt; $last$ ]',
		'prev_text' => T_('Previous'),
		'next_text' => T_('Next'),
	) );


mainlist_page_links( array(
		'block_start' => '<p class="paged">[ '.T_('list span 5, scroll list range default:').' ',
		'block_end' => ' ]</p>',
		'list_span' => 5,
	) );

mainlist_page_links( array(
		'block_start' => '<p class="paged">[ '.T_('list span 5, scroll list range 4:').' ',
		'block_end' => ' ]</p>',
		'list_span' => 5,
		'scroll_list_range' => 4,
	) );

mainlist_page_links( array(
		'block_start' => '<p class="paged">[ '.T_('list span 5, scroll list range 1:').' ',
		'block_end' => ' ]</p>',
		'list_span' => 5,
		'scroll_list_range' => 1,
	) );

For those into all available bobbles you can feed that gizmo, check out http://doc.b2evolution.net/v-2-4/__filesource/fsource_evocore__blogsincitemsmodel_itemlistlight.class.php.html#a1463 and be *amazed*!

BTW I think the bits you want to tinker with are "list_span" and "scroll_list_range" but I honestly don't remember what I figured out back in the good old days.

20 Feb 04, 2009 06:49

brandon: yeah, I want it to look like your pages do pretty much.

21 Feb 04, 2009 06:50

all i did for that was change the list_span number to a higher number than my number of pages. like i said, not sure if maybe they implemented the function with a maximum, but mine is set at 700 and i only have about 25 pages.

22 Feb 04, 2009 06:55

brandonh wrote:

i'm against picketing, but i don't know how to show it.

OT: love the sig line :)

23 Feb 04, 2009 18:21

Unfortunately, I do not want to display 63 links for my site to get rid of the 3 dot problem when displaying Page Links. I just want to display about 7-10 links to the pages without the dreaded ... happening. list_span only seems to work if you display a link for each page in your blog, and mine has 63 and I don't want to do that.

24 Feb 04, 2009 18:41

so you want

1 2 3 4 5 6 7 8 9 10

with no dots? How would they get to 63?

25 Feb 04, 2009 19:02

Instead of DOTS I want the Page numbers to display.

No 1 .. 3 4 5 6 7 .. 63 as it displays now but:

1 2 3 4 5 6 7 8 63 (note the actual 2 and 8 instead of ..)

26 Feb 04, 2009 19:25

From EdB's handy link to the manual :

        'list_prev_text' => '...',
        'list_next_text' => '...',

Change the dots ;)

¥

27 Feb 04, 2009 19:37

wow i totally misunderstood what you wanted until that last post.

28 Feb 04, 2009 22:46

brandon: your page behaves exactly pretty much how I want mine to act, you are not experiencing the dreaded dots like I am. Can you list your code for the pages links?

Dearest, dearest Yabba - don't make me shout your name again and point with the stern finger. :D

The three dots that appear are not prev/next dots but are instead placed in place of an actual page number for some unfathomable reason.

Let's say you go to my main page and click page on page 8.

This is what's displayed:

<< 1 ... 3 4 5 6 7 8 9 10 11 12 13 ... 63 >>

The << and >> are prev/next links. the ... is page 2 instead of displaying the number 2, as well as page 14. I should display 2 and 14 instead of those accursed dots.

I don't get it, I just don't.

www.navarinounincorporated.com

PS. I will scream from the rafters in my house if I type plainly and am misunderstood. Don't make my house's ears hurt. >:(

29 Feb 05, 2009 00:06

So you want it to say

<< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 63 >>

Which implies to my eye that pages 15 through 62 don't exist. But if that's what you want then say so.

And what would it say on page 11? I see

<< 1 ... 6 7 8 9 10 11 12 13 14 15 16 ... 63 >>

but if you get rid of the dots what do you put in their place?

30 Feb 05, 2009 00:11

Oh and the three dots Yabba pointed out are not prev/next bits. They are the three dots you seem to want to make go away, so in your skin add two more bits to the function that makes the page list:

'list_prev_text' => '',
'list_next_text' => '',

Or take Yabba's word and notice that the triple-dots are coming from params called list_prev_text and list_next_text and make them be nothing instead of triple dots.

31 Feb 05, 2009 01:18

Ed: please please please read it's not confusing. Pages 15-62 do exist. I want the 3 dots to display the page numbers they actually point to (in my case, 2 and 14 in the example I gave). The two examples you gave do nothing to do this, alas. :'(

32 Feb 05, 2009 02:51

Nice attitude quard.

In the one exact case you identified, that is being on page 8, do the dots SEEM to represent the two numbers you identified, but (alas) that is simply not the case. Those dots indicate that pages are missing from the list. Look at page 11 for example. EXACTLY what do the dots mean in that case?

So what do you want other than the three dots to not be there?

33 Feb 05, 2009 05:13

Ed: the pages are there. I don't know how to put it even simpler than that. Others seem to understand just fine.

34 Feb 05, 2009 11:34

this does exactly what you want. what don't you get about what those other guys said? did you even try it. I can't believe i'm still helping, because of your attitude towards the biggest helpers on this forum, but this is what you want...

		mainlist_page_links( array(
				'block_start' => '<p class="center">'.T_('Pages:').' <strong>',
				'block_end' => '</strong></p>',
				'list_span' => 10,				
				'list_prev_text' => '',
				'list_next_text' => '',
			) );

please make sure you at least try the code before criticizing. also, this throws intuitiveness out the window, but if that's what you want go for it. http://bhphp.com i only changed the top page list, not the bottom.

35 Feb 05, 2009 13:16

guard I didn't ask you if the pages are there or not. I FARKING KNOW THEY ARE THERE! I asked you, very clearly, what EXACTLY you want instead of the three dots. Cuz see removing the three dots and replacing them with another page number (leaving out many many other page numbers) has already been given to you a few times. Having all page numbers show has also been given to you a couple of times. But instead of answering the question so that we could all understand why the answers provided don't seem to be what you want, you got snippy again.

Goodbye guard.

36 Feb 05, 2009 21:33

I guess I have to quote myself since reading is out:

Instead of DOTS I want the Page numbers to display.

Not 1 .. 3 4 5 6 7 .. 63 as it displays now but:

1 2 3 4 5 6 7 8 63 (note the actual 2 and 8 instead of ..)

Again, instead of the dots, which are hyperlinks to actual pages I want the page number those dots represent to display. I asked for you to please read what I said so you'd understand, Ed.

37 Feb 05, 2009 22:59

the real point is that had you followed yabba's advice however many posts back, none of this argument would have had to happen. just change your code and leave it at that.

38 Feb 05, 2009 23:23

brandon: It doesn't do what was asked.

Again, instead of the dots, which are hyperlinks to actual pages I want the page number those dots represent to display.

I ask only those that understand this to answer further.

39 Feb 06, 2009 01:25

I think I have found where the problem lies, it's in _results.class.php code. I need to change the logic so it displays the number of the page when it hits the prev and next page logic. I don't know exactly how right this sec, but after some tinkering I should have it working.

40 Feb 06, 2009 01:48

i don't know how this can be any clearer. you are digging way too deep.

here is the html which is made by the previously posted (possibly too many times) code. mine is in index.main.php. perhaps yours lies elsewhere which would explain (if you actually are changing it in index.main.php) the lack of results.

<p class="center">Pages: <strong>   <strong class="current_page">1</strong> 
<a href="http://bhphp.com/?blog=4&amp;paged=2">2</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=3">3</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=4">4</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=5">5</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=6">6</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=7">7</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=8">8</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=9">9</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=10">10</a>  
<a href="http://bhphp.com/?blog=4&amp;paged=11"></a> 
<a href="http://bhphp.com/?blog=4&amp;paged=25">25</a> 
<a href="http://bhphp.com/?blog=4&amp;paged=2">&gt;&gt;</a></strong></p>

there are CLEARLY NO DOTS and instead you see LINKS TO PAGES. What is your damage?

41 Feb 06, 2009 02:17

In the case you listed, the line

<a href="http://bhphp.com/?blog=4&amp;paged=11"></a>

Should read

<a href="http://bhphp.com/?blog=4&amp;paged=11">11</a>

To do what I want it to do.

If you cannot understand, please don't get upset. Damage back atcha.

42 Feb 06, 2009 03:39

set your list span to one more to achieve that. do you have some crazy javascript that is affected by the one empty link that can't be clicked on? is it something that shows up on internet explorer? if you want to have one more link show, just add 1 to the list span.

i can't wrap my head around why you really can't stand having a link with no value... please explain why this is so bad that you would have to go ripping around in all that code? pet peeve maybe?

43 Feb 06, 2009 04:07

got it....

i think...

i found something buried in _itemlistlight.class.php.

in the mainlist_page_links call, try this:

change:


'links_format' => '$prev$ $first$ $list_prev$ $list$ $list_next$ $last$ $next$',

to :


'links_format' => '$prev$ $first$ $list$ $last$ $next$',

then increase your list_span by two. I'm testing this out right now...

44 Feb 06, 2009 04:17

i still think it's weird without the dots, but to each his own. i also can't understand why it's so necessary to get rid of the empty hyperlinks that result from making the dots blank. here is the html from the above code:

<p class="center">Pages: <strong>  <strong class="current_page">1</strong> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=2">2</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=3">3</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=4">4</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=5">5</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=6">6</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=7">7</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=8">8</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=9">9</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=10">10</a>  
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=25">25</a> 
<a href="http://www.bhphp.com/blog4.php?blog=4&amp;paged=2">&gt;&gt;</a></strong></p>

i hope you explain the reason for not wanting the blank hyperlinks, and let me know if this is/isn't what you were after.

45 Feb 06, 2009 04:20

Gold medal for "sticktoitiveness" brandonh

I always thought people visited blogs for the articles, not the pagination :)

46 Feb 06, 2009 04:49

Thank you so much brandon, the code change worked 100% the way I wanted the page links to look!!

I bow.
I say thanks x a billion (in shorthand of course don't want to spam the board).
I bow again.
I say thanks one more time with a reservation to randomly thank you in the future!

The reason it was important to have the dots display the page numbers they actually point to is that if you go to my blog you'll see I have a border around each page link. By wiping out the three dots, the links remain and I'm left with two things I don't want - either a blank box that points to a page or a link that doesn't actually display what it points to.

WOO!

Thankies again!

Screw it, I bow again! :D

47 Feb 06, 2009 04:54

thank francois and the b2 team for having the option to put that right in the function call instead of making you go hack core files. glad to help.

48 Feb 06, 2009 05:05

Oops you're totally right. Thanks to you too Francois!

B2evolution... we make it easy to do what you want even if it doesn't make sense to us.


Form is loading...