Hello,

After googling for a few hours, I really need advice because I have found nothing that matches what I was looking for.

The situation is as follows:

I have a site with a forum based on PunBB 1.2. I use a system of affiliation displaying ebay ads on the site, but it happens regularly that members post links directly to ebay, and in this case visitors who click on these links do not pass through the tracker which recognizes my clicks on my affiliate program, they will go directly on ebay without my little cookie affiliation ...

So I thought it would be wise to rewrite all links like:

http://cgi.ebay.fr/BLABLABLA

and

http://stores.ebay.fr/BLABLA

So that they will go through my affiliate program. I need the rewrite to output those urls:

http://rover.ebay.com/rover/1/700-11111-22222-0/1?type=4&campid=0000000000&toolid=10001&customid=0000&mpre=http%3A%2F%2Fcgi.ebay.fr%2FBLABLABLA

or

http://rover.ebay.com/rover/1/700-11111-22222-0/1?type=4&campid=0000000000&toolid=10001&customid=0000&mpre=http%3A%2F%2Fstores.ebay.fr%2FBLABLA

I think this can be done with a regex, and probably somewhere in parser.php, around line 447 where there is

//
// Make hyperlinks clickable
//
function do_clickable($text)

Or somewhere around it.

Could someone help me setting up something to rewrite the ebay links on my forum?

I already tried, but when I modify the padding attributes, it extends the bar and it doesn't display fine. Here is a sample output with

padding: 5px 20px;

http://nsa05.casimages.com/img/2009/02/28/090228102625841040.png

As you can see the bar becomes wider than the forum, it expands on the right and it exceeds the forum size of 20px, it also expands on the bottom of 5 px and the bar which should be 30px height is now 35 px height with an ugly background I don't want to see.

I don't know how I can keep the original size of the bar and place the letters without changing the whole bar size.

Ok, so I'm still working on those boxes I want to include. Here is what I did:

In main.tpl:

<!-- forum_about -->
</div>
    <div id="pub">Test</div>
    <div id="pub2">Test</div>


<!-- forum_debug -->

In Oxygen.css:

#pub{
    width: 100%;
    border: 1px solid #eee;
    background:#1f537b url(http://www.mysite.fr/mypicture.png) repeat scroll 0 0;
    color:#FFFFFF;
    height: 30px;
    padding: 0 0;
    margin: 0 0;
}
#pub2{
    width: 100%;
    border: 1px solid #eee;
    background-color: #fafafa;
    padding: 0 0;
    margin: 0 0;
}

Here is the result at the bottom of the forum:

http://nsa05.casimages.com/img/2009/02/27/090227074414872215.png

It would be perfect if the characters would be at the same place than in the other bars, like categories for example. You can see on the following picture that there is a problem with the alignment and spacing of the carachters:

http://nsa05.casimages.com/img/2009/02/27/090227074918712759.png

I tried to modify the carachters alignment on the css so it will display like in the category bar with no result.

I removed the dot through the css but I still have those blank spaces before the topic titles and I don't understand where they come from. hmm

5

(82 replies, posted in PunBB 1.3 extensions)

I just noticed another little display bug, it's must probably be because I reduced my forum's width:

http://ups.imagup.com/02/1235323490_sans-reponse.png

You can see on the right of the picture that the icon unanswered.png is not displayed as it should be, it is lower than the others icons and cutted in the middle.

6

(17 replies, posted in PunBB 1.3 extensions)

Thank you daris, I'll try to modify the CSS that way smile

Thank you for those answers smile

I feel like I really need to improve my CSS knowledge now...

That's very interesting, thank you smile

I was looking at this: CSS2 Reference to rebuild the css from my website, because i have a big display bug with the background. I have lot of things to learn, I will have some free time soon to read and study, I think the website and forum I'm working on will take a lot of time to be ready.

Ok, maybe I'll try your method using the css, because what I did in main.tpl doesn' work for the announcement section of the forum, here is the best result I got:

http://ups.imagup.com/02/1235270474_announcement-test-tpl.png

with this code in main.tpl:

<!-- forum_announcement -->

<div class="main-head">
        <h2 class="hn"><span>Partenaires</span></h2></div>
    <div id="brd-about" class="gen-content">
    Test
    </div>
<div class="hr"><hr /></div>

The problem is the space between the blue bar and the white frame, I need to remove it so that it will look clean. Everything I tried to remove this space blowed up the whole forum design! lol I need to work on it again, but I feel like I'm getting close.

What should I do to remove those ugly blank spaces?

I got it, thanks to you again! smile

I did what I wanted to do:

http://ups.imagup.com/02/1235268247_footer-ok.png

And here is the code in main.tpl:

<!-- forum_info -->

<div class="hr"><hr /></div>

<div id="brd-about" class="gen-content">
    <!-- forum_about -->
</div>
<div class="main-head">
        <h2 class="hn"><span>Partenaires</span></h2></div>
    </div>
    <div id="brd-about" class="gen-content">
    Test
    </div>
<my-marker-code>

<!-- forum_debug -->

</div>
</div>

</body>
</html>

That's so great, I'll use it to modify the footer and the announcement section, it will let me use an external script for a rotative banner for example, my test forum begins to look good! big_smile

Such an extension would be so great! big_smile

I will wait, and if I find something useful I'll report it back here to share with the forum smile

Ok, thanks Programming-Designs it is working smile

Here is the output on my test-forum:

http://ups.imagup.com/02/1235267240_main-tpl-xiti.png

But the output is outside the forum, is there a way to put a kind of frame around it, like if it was a category of the forum with a title bar, or at least a frame around it such as the frame that is at the bottom of the forum where there is "Powered by Punbb"?

I wanted to add a new section below the footer, so I tried modifying footer.php like I used to do in my old 1.2, but it's not working anymore. What I wanted was to be able to display personnal html and scripts like video bars, partners links, internet audience marker and all that kind of stuff.

Do someone knows any way to add a new section below the footer?

Thanks for any help smile

I removed it in the extern.php, line 258 I removed the <li> quotes:

before

echo '<li><a href="'.$item['link'].'" title="'.forum_htmlencode($item['title']).'">'.$subject_truncated.'</a></li>'."\n";

after

echo '<a href="'.$item['link'].'" title="'.forum_htmlencode($item['title']).'">'.$subject_truncated.'</a><br />'."\n";

And here is the result:

http://ups.imagup.com/02/1235264681_extern-dot-removed.png

What I don't understand is why there are some spaces before the beginning of the topic titles, so it doesn't start where it is supposed to...

Any way to fix it?

I finally got through this, thanks to you smile

Here is the valid code I used (not sure it's very clean but it is working big_smile ):

<h3><p><font size="5">Welcome <?php
define('FORUM_ROOT', './forum/');
require FORUM_ROOT.'include/common.php';
if($forum_user['username'] == 'Guest'){
echo '';
}
else
{
echo forum_htmlencode($forum_user['username']);
}
 ?> to mysite.fr</font></p></h3>

Many thanks for your help MattF smile

I hope it will be useful for someone else, that's the kind of little thing I like, people surfing the web most often appreciate to have a dedicated welcome homepage wink

Thanks, that seems to be a little better, I don't get the php notice anymore, but I still get the fatal error:

Fatal error: Call to undefined function pun_htmlspecialchars() in /web/mysite/www/index.php on line 46

Here is the line 46 of the code:

echo pun_htmlspecialchars($forum_user['username']);

It seems the problem is there... hmm

I was previously using this code in my punbb 1.2 to display a customized welcome message in the homepage of my website:

<h3><p><font size="5">Welcome <?php
define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';
if($pun_user['username'] == 'Guest'){
echo '';
}
else
{
echo pun_htmlspecialchars($pun_user['username']);
}
 ?> to mysite.fr</font></p></h3>

This displayed

"Welcome to mysite.fr"

if the visitor was not logged in, and

"Welcome user-name to mysite.fr"

when the visitor was logged in. I'm trying to get the same result with my punbb 1.3.2, so I changed the code to:

<h3><p><font size="5">Welcome <?php
define('FORUM_ROOT', './forum/');
require FORUM_ROOT.'include/common.php';
if($pun_user['username'] == 'Guest'){
echo '';
}
else
{
echo pun_htmlspecialchars($pun_user['username']);
}
 ?> to mysite.fr</font></p></h3>

But I get this as html output:

Notice: Undefined variable: pun_user in /web/mysite/www/index.php on line 41

Fatal error: Call to undefined function pun_htmlspecialchars() in /web/mysite/www/index.php on line 46

I created databases with a prefix, so I add the database prefix in the code but it still gives a notice and a fatal error. As I'm using a french language, I'm using "Invité" instead of "Guest" in the code, but it still gives an error. I changed "pun-user" with "pun-users" and it is still the same...

A little help would be much appreciated, thanks smile

I'm currently using this:

<p>
<? echo file_get_contents("http://www.mysite.fr/forum/extern.php?show=5"); ?>
</p>

To display the 5 last forum topics on my website, but I have a little problem with the output, it gives this:

http://ups.imagup.com/02/1235251041_extern.png

How can I display the last posts without the big dot at the beginning and the spaces?

I just want the topic titles to be displayed, truncated to the right length with this part of extern.php:

// The length at which topic subjects will be truncated (for HTML output)
if (!defined('FORUM_EXTERN_MAX_SUBJECT_LENGTH'))
    define('FORUM_EXTERN_MAX_SUBJECT_LENGTH', 30);

So is it possible to get

News

Test post 
Test de longueu… 
What is the now? 
dhtdjhtsj 

instead of what is on the picture above?

Thanks to anyone who can help smile

I was previously using punbb 1.2, and I was displaying pictures (little icons) nearby each category whith this mod in the styles/imports/your_style_cs.css:

#
#---------[ Add at the end ]---------
#

/****************************************************************/
/* N.  CATEGORIES PICTURES */
/****************************************************************/

#idx1 h2 span {
background: transparent url(../../img/image_categorie_1.png) no-repeat 0 0;
padding-left: 25px;
height: 22px;
display: block;
}

#idx2 h2 span {
background: transparent url(../../img/image_categorie_2.png) no-repeat 0 0;
padding-left: 25px;
height: 22px;
display: block;
}

... And so on for each category. I tried the same thing on my punbb 1.3.2 but it doesn't work. The idea sould be to display someting like that:

http://ups.imagup.com/02/1235250454_icons-category2.png

I cheated with photoshop to show you this example, the idea should be to have one different icon in front of each different category. Is it possible to do whithout touching the core of the code, with the css or an extension?

I was looking for such a lightbox feature to include on my forum, this extension seems to be really great, thanks! smile

As it has already been told, something like a "click anywhere to close" would be perfect because when pictures are too big they fit the screen and the users won't understand how to get back to the post.

@ Programming-Designs, I viewed your example, but it doen't load the picture like it does in the KeyDog Demo, the image is displayed directly without the lightbox animation effect, is there a way to fix it?

22

(61 replies, posted in PunBB 1.3 extensions)

Silly me, I just uploaded the lang/French that I did for the 1.2 and the problem comes from here, I made a mistake somewhere. The Online Plus version 1.3 works fine smile

23

(61 replies, posted in PunBB 1.3 extensions)

Just updating from 1.2 to 1.3 and I have some bugs in the admin panel:

http://ups.imagup.com/02/1235243996_online-plus-bug.png

The 1.2 was running perfectly tough, great extension smile

24

(17 replies, posted in PunBB 1.3 extensions)

Well, I just have a css problem with the quick search form. I modified the original css with it:

#quick_search_popup {
    font-family: Tahoma;
    font-size: 11px;
    padding: 3px;
    padding: 0;
    width: auto;
    min-width: 0;
    background: #1f537b;
}

So that the background color will fit my forum color scheme.

In Ie it displays correctly (except the colored "Faire une nouvelle recherche" which is kinda ugly once it has been clicked one time):

http://ups.imagup.com/02/1235240350_quick-search-ie.png

But here is the output in firefox:

http://ups.imagup.com/02/1235240450_quick-search-ff.png

I'm a css n00b so I must have made some mistake somewhere?

25

(17 replies, posted in PunBB 1.3 extensions)

Very nice extension, I just installed it smile

Is there a way to limit the quick search access to the registered users, so that the guests will only have the standard link to search.html?

And is there a way to avoid the "Perform new search" change of color once it has been clicked one time?