NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 02-08-2009 08:06:06

ekaki
New member

profile.php, change thumbnail target, get page number?

Hi, I've installed a Wakintaki (1.4.1) and have enjoyed
building a theme and making some other modifications,
but one thing totally stumps me:

In the page 'profile.php' @ about line 524 the code says:

Code:

// Get thumbnail
$link = "<a href=\"{$p_pic}{$row['PIC_ID']}.{$row['ptype']}\" target=\"_blank\">";
$link2 = "</a>";

Ok, so this would link this thumbnail to the actual image,
on its own on a blank page. But I want the link to lead to
the actual page with the image post and comments on, ie:

Code:

// Get thumbnail
$link = "<a href=\"index.php#pic{$row['PIC_ID']}\">";
$link2 = "</a>";

Now that works fine if the image is on the main page,
but once the image moves from the main page it does
not work any more (obviously) because the "?pageno="
data is missing...

I was wondering if there is any code already in the Waki'
that would help me call the exact page the image is on?
I guess I just need a way to call the related page number.
(see 'somehow call page number' below as an example)

Code:

// Get thumbnail
$link = "<a href=\"index.php?pageno={somehow call page number here}#pic{$row['PIC_ID']}\">";
$link2 = "</a>";

I hope I didn't 'ramble' too much... .. . Thanks for your time.   smile

Offline

#2 02-11-2009 04:43:28

Waccoon
Administrator

Re: profile.php, change thumbnail target, get page number?

Yeah, getting the proper page number is a pain, depending on what the search criteria needs to be.  I haven't implemented a way to do this, yet.

Offline

#3 02-11-2009 19:39:46

ekaki
New member

Re: profile.php, change thumbnail target, get page number?

Waccoon wrote:

Yeah, getting the proper page number is a pain, depending on what the search criteria needs to be.  I haven't implemented a way to do this, yet.

Ahh, nevermind... It was worth a try, I'll just link them
to '?a_match=' and people can find them on their own.

Thanks for replying smile

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB