php forum
php mysql forum
php mysql smarty
 
Topic Options
#315990 - 10/11/07 06:53 PM Need a Mod ... Custom Island in PM templateHi Guys
24hourcampfire Offline
Lurker

Registered: 12/23/02
Posts: 5
Hi Guys:

I want to put an island between the first and second post in a PM thread. I get LOTS of PM traffic, and I want to put ssome advertising in there.

I know just enough coding to be dangerous.

Whatcha all think? I get the sense it's either a really simple template mod, or a highly complex re-write job.

Any helpers?

rb


Top
#315991 - 10/11/07 07:03 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: 24hourcampfire]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
i'd call it a template + code (small/medium) mod.

doable
_________________________

Top
#315992 - 10/11/07 08:06 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: sirdude]
24hourcampfire Offline
Lurker

Registered: 12/23/02
Posts: 5
Help please!

I want an ad slot in my PM template after first post. Any takers?

rb

Top
#315993 - 10/11/07 11:01 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: 24hourcampfire]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
like i said in pm at central, it's doable but would take some work to do
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#316008 - 10/15/07 12:03 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Okay, that took only 5 minutes smile

in /scripts/viewmessage.inc.php

find:
Code:
	$user['USER_TOTAL_PM'] = $total_unread;


Add below:
Code:
	$island_insert = get_portal_box("portal_box_3.php");


You can replace that number 3 there with any of the other custom boxes. It's hardcoded for simplicity of the hack. No sense in make more fuzz of it then the 2 line hack it is laugh

Just under it find
Code:
		"online_status" => $online_status,


Add below:
Code:
		"island_insert" => & $island_insert,


And yes, that's all there is to it.

It's a really simple hack, you just have to provide the $island_insert variable to the smarty template, and it will be displayed automaticly below post #1.
_________________________

Top
#316011 - 10/15/07 04:38 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Now we need a way to make these ads appear after say the 5th post in a thread or PM wink
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#316012 - 10/15/07 05:21 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: Ian_W]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
That would be a major $10,000 dollar paid hack since you have to edit 2 files for that smile post_side.tpl and post_top.tpl and change the magic line in both smile

That's well beyond the scope of this topic wink


Edited by blaaskaak (10/15/07 05:22 PM)
_________________________

Top
#316013 - 10/15/07 06:25 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
24hourcampfire Offline
Lurker

Registered: 12/23/02
Posts: 5
Hmm.

First off, HUGE thanks.

I'm running 7.1 and did the first add, but could not find in my viewmessage.inc.php file:

"online_status" => $online_status,

I tried putting the following in the smarty code, but no workee.

"island_insert" => & $island_insert,

Still no luck, Chuck.

Top
#316014 - 10/16/07 02:03 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: 24hourcampfire]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Hm, I don't have a 7.1 copy running, I run the latest version (7.2.2 at this time).

Basicly all there is to it is adding that
"island_insert" => & $island_insert, in the $smarty_data = array(

But ehr, 7.1 could be your show stopper anyhow for this simply hack. If I remember correct, the joined post_side.tpl and post_top.tpl which is used to display posts in both flat, threaded and private topic mode was introduced in 7.2

I would recommend an upgrade to 7.2.2.
_________________________

Top
#316015 - 10/16/07 02:51 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Originally Posted By: blaaskaak
That would be a major $10,000 dollar paid hack since you have to edit 2 files for that smile post_side.tpl and post_top.tpl and change the magic line in both smile

That's well beyond the scope of this topic wink


$10,000 on it's way wink
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#316016 - 10/16/07 03:16 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: Ian_W]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: Ian_W
$10,000 on it's way wink


/templates/default/post_side.tpl

Code:
{if $smarty.section.post.iteration == 1}


replace with

Code:
{if $smarty.section.post.iteration == say the 5th post}


The post_top.tpl hack I will post after receiving the funds smile
_________________________

Top
#316017 - 10/16/07 10:07 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
i'll only charge $9999
_________________________

Top
#316018 - 10/16/07 10:57 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: sirdude
i'll only charge $9999


yeah right, ex taxes I'm sure. Don't fall for that old trick Ian laugh
_________________________

Top
#316019 - 10/16/07 11:08 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
yah, but i'll also throw in a slightly used version of Halo II laugh
_________________________

Top
#316020 - 10/16/07 01:33 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
I'll add a 3 star New Mario Bros Nintendo DS savegame, with everything unlocked. And yarp, played those 3 stars myself.
_________________________

Top
#316021 - 10/16/07 06:49 PM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
always wondered how many stars you could get... lol
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#316023 - 10/17/07 01:39 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: Gizmo
always wondered how many stars you could get... lol


Final Castle, alle exits, all coins... That last one took me ages laugh
_________________________

Top
#316024 - 10/17/07 02:05 AM Re: Need a Mod ... Custom Island in PM templateHi [Re: blaaskaak]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
i guess i'm about 80% there, I have all castles done, probably all but 4 alt exits (2 ghost houses), and probably 80% of coins...

i've been really engrossed with Legend of Zelda, Phantom Hourglass; I'm a little over half way through, with the majority of minigames completed.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks