Have a look at the code in post.php. With a few minor adjustments, you can copy and make that preview code work in the message_send.php? file.
1 2009-07-31 00:48
Re: Private Message mod v1.2.4a - unofficial update (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2009-07-28 23:48
Re: Question about Navlinks section (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Just before the final }.
3 2009-07-25 14:22
Re: database gone !!! (4 replies, posted in PunBB 1.2 troubleshooting)
Pack that crap in now Nick. If you cannot offer helpful advice, say nothing.
Have all of your tables actually disappeared, or are you just assuming so due to that error? Your best option would be to have a word with your host and see what they say. Do you not have any database backups?
4 2009-07-23 11:29
Re: Visual LightBox (9 replies, posted in PunBB 1.2 troubleshooting)
The scripts are now working as they should. It's up to you to alter the config settings and CSS until you get things setup, working and looking how you want.
5 2009-07-23 08:29
Re: Visual LightBox (9 replies, posted in PunBB 1.2 troubleshooting)
Seems to be working fine on that link you posted: http://www.gufs.eterya.com/gallery_1.php
Clear your cache and check again.
6 2009-07-23 07:31
Re: Visual LightBox (9 replies, posted in PunBB 1.2 troubleshooting)
Put these lines in header.php, where they should be:
<link rel="stylesheet" href="engine/css/lightbox.css" type="text/css" media="screen" />
<script src="engine/js/prototype.js" type="text/javascript"></script>
<script src="engine/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="engine/js/lightbox.js" type="text/javascript"></script>
and try the code below.
<?php
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
?>
<div class="block">
<h2><span>Galleri 1</span></h2>
<div class="box">
<div class="inbox_2">
<style>
.gallery {
zoom:1;
width:auto;
}
.gallery a {
display:block;
float:left;
margin:5px;
opacity:0.87;
text-align:center;
}
.gallery a:hover {
opacity:1;
}
.gallery a img {
border:none;
display:block;
}
.gallery a#vlightbox{display:none}
</style>
<div class="gallery">
<a href="./data/images/amalilucia2008010.jpg" rel="lightbox[sample]" title="amali lucia 2008 010"><img src="./data/thumbnails/amalilucia2008010.png" /></a>
<a href="./data/images/amalilucia2008015.jpg" rel="lightbox[sample]" title="amali lucia 2008 015"><img src="./data/thumbnails/amalilucia2008015.png" /></a>
<a href="./data/images/amalilucia2008016.jpg" rel="lightbox[sample]" title="amali lucia 2008 016"><img src="./data/thumbnails/amalilucia2008016.png" /></a>
<a href="./data/images/amalilucia2008036.jpg" rel="lightbox[sample]" title="amali lucia 2008 036"><img src="./data/thumbnails/amalilucia2008036.png" /></a>
<a href="./data/images/amalilucia2008001.jpg" rel="lightbox[sample]" title="amali lucia 2008 001"><img src="./data/thumbnails/amalilucia2008001.png" /></a>
<a href="./data/images/amalilucia2008007.jpg" rel="lightbox[sample]" title="amali lucia 2008 007"><img src="./data/thumbnails/amalilucia2008007.png" /></a>
<a href="./data/images/amalilucia2008008.jpg" rel="lightbox[sample]" title="amali lucia 2008 008"><img src="./data/thumbnails/amalilucia2008008.png" /></a>
<a href="./data/images/amalilucia2008009.jpg" rel="lightbox[sample]" title="amali lucia 2008 009"><img src="./data/thumbnails/amalilucia2008009.png" /></a>
</div>
</div>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
7 2009-07-23 03:32
Re: Visual LightBox (9 replies, posted in PunBB 1.2 troubleshooting)
Have you looked at your page source on the gallery page? I've no idea how you've contained the gallery, code wise, but you can only have one head and body in a page, not two. Place the lightbox js links in header.php and get rid of the rest of that cruft from your gallery pages.
8 2009-07-22 20:54
Re: Cash logs, i made, i need to pull imgaward :) (11 replies, posted in PunBB 1.2 troubleshooting)
MattF wrote:The column(s) type has absolutely no bearing on the query. You have already had an explanation of what the column types mean.
Why u keep posting stuff that u dont understand? lol
[snipped]
THE QUERY BE THE SAME ? OR DOES IT JUST AUTOMATICALLY SPEED IT UP SINCE NOT ALL TEXT?S??
Thanks.
First, why are you asking as I obviously have no idea what I'm talking about?
Second, try as I might, I still find you an obnoxious, unhelpable little twat with a serious attitude problem and a total manners deficit, so just go screw yourself Nick. If you cannot retain some civility then you will receive absolutely none from me.
9 2009-07-22 19:46
Re: Remove search from the menu (11 replies, posted in PunBB 1.2 troubleshooting)
That code is from the easypoll mod. Unless you really want users to see poll links in returned search results, I wouldn't worry.
10 2009-07-22 19:43
Re: Cash logs, i made, i need to pull imgaward :) (11 replies, posted in PunBB 1.2 troubleshooting)
The column(s) type has absolutely no bearing on the query. You have already had an explanation of what the column types mean.
11 2009-07-22 17:44
Re: Remove search from the menu (11 replies, posted in PunBB 1.2 troubleshooting)
From the download package you used to create your forum.
12 2009-07-22 01:31
Re: Remove search from the menu (11 replies, posted in PunBB 1.2 troubleshooting)
generate_navlinks() in the functions file. The search link is generated in there. Crippling your system by removing search seems somewhat peculiar, however.
13 2009-07-21 20:50
Re: Remove search from the menu (11 replies, posted in PunBB 1.2 troubleshooting)
Have you actually altered search.php for any of those mods? Nothing seems glaringly obvious from the quick look I just had at your file. You could always just upload a fresh copy of search.php to your forum, btw.
14 2009-07-21 12:57
Re: Remove search from the menu (11 replies, posted in PunBB 1.2 troubleshooting)
Unless you expect us to use our psychic abilities, posting the code from search.php may make checking for the broken code somewhat easier.
15 2009-07-21 02:57
Re: Have all Last Post links point to Topic instead. (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I'd forgotten the PM mod was installed on here. Cheers for that. I'll have a look see.
16 2009-07-21 02:48
Re: amputating limbs of PunBB 1.2 (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Your stylesheets in the style dir.
Add this to the end of the oxygen.css file:
th.tc2, th.tc3, td.tc2, td.tc3 {display: none;}
and those columns should become hidden by the browser. They'll still be there, but not visible.
17 2009-07-20 22:49
Re: Have all Last Post links point to Topic instead. (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
The only thing I don't have perfect is valid HTML. I've done some funky stuff that comes up as invalid on W3C, but it's all cross-browser friendly. I've read that it's kind of irrelvant as long as the bots can read the text and tags. Also, the biggest sites, including Google, have more errors than mine.
Is it possible to post the link to your site? (Or e-mail it direct to me if not?) Very few things other than IE specific code or suchlike are irrepairable. Source code validity is something worthwhile working towards, if possible. It has benefits in just about all areas.
I know what you mean with the likes of Google and such. It wouldn't be so bad but most of those widgets and such they do either don't work or screw your page validity up too. Hardly a shining example for standards.
Let me ask you something that I just noticed. When you're at say a Topic, and log in to post a reply, my Punbb 1.2* redirects to the index page. That's not happening here, it brings you back to where you were. Is there a fix for that, or is it just an upgrade on 1.3*?
It was a feature added in 1.3. The previous page you visited is stored in the DB, and the redirects use that value instead of just redirecting back to the index and suchlike.
18 2009-07-20 21:52
Re: amputating limbs of PunBB 1.2 (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Are you actually wanting to rip out all of that code specifically or just make it not visible? You're creating a whole lot of work for yourself by ripping the code apart, (and risking buggering things up in the process). Just hiding content via the CSS would be far simpler and less detrimental.
19 2009-07-20 21:48
Re: Have all Last Post links point to Topic instead. (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Aye, that pretty much sums up the general gist of things. Provide them with good links as hints, i.e: the sitemap, but leave the classification and general decisions on what to include to their indexing bots.
The only time I've ever redirected or blocked content is when I'm specifically wanting them to view a different version of a page, (printable version over full version, etc.), or when it's a section or portion of the site which they have no need to access. Providing good quality metadata information, useful titles, good quality, valid (x)html and suchlike seems to have far more effect than the likes of worrying about duplicate content or trying to provide fancy URL schemes and suchlike. The indexing bots have had plenty of time to become well adapted to their job by now.
20 2009-07-19 21:38
Re: number_format (4 replies, posted in PunBB 1.2 troubleshooting)
I obviously understand better than yourself, (again). Did you actually read the whole of my post?
21 2009-07-19 21:35
Re: Have all Last Post links point to Topic instead. (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Judging by one bit of info I found, do nothing. The search engines are smart enough these days to glean what information they need from where they prefer to glean it from.
22 2009-07-19 21:31
Re: number_format (4 replies, posted in PunBB 1.2 troubleshooting)
Do you really have to do the drama queen type posts?
23 2009-07-19 20:55
Re: Have all Last Post links point to Topic instead. (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
That code appears to be for the subforum mod.
You'd need to changed a darned sight more than just the link. Unless you're a glutton for punishment and rather comfortable with coding, I would recommend you give this idea a wide berth. Besides, the SEO benefit is totally unproven. I personally think they're a complete waste of time in that regard. They're eye candy, nothing more.
24 2009-07-17 19:56
Re: Disable RSS (solved) (6 replies, posted in PunBB 1.3 discussion)
<?php // The first php tag at the top of extern.php
exit('The RSS Feed is disabled on this forum.');
25 2009-07-17 19:54
Re: Holy cow, 50Querys.. Help me GOD (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
{sorry im french}
The word you're after is either 'thick' or 'annoying'.
p.s: You sure as hell ain't French Nick.