[ABD] Last X [img] on Forum v.0.0.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
lustucrus
Registered User
Posts: 45
Joined: Tue Dec 06, 2011 12:39 pm

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by lustucrus »

Thank's for your help, i find it, but i need to autorised 'can view post details' in global Moderator permission ....

This is normal ??? because i dont want this option for all user.

thank's for work
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

no clue, i have 'normal rights" for users/groups on each board and don't see a restriction there.
Current Mods | Mod Base | php(BB) programming | No help via PM
Poulg
Registered User
Posts: 99
Joined: Sat May 07, 2011 5:17 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by Poulg »

Hi,

I try to make the same like last attachment in viewtopic for this mod, but does't work
I try this mod, in last_x_img_on_forum:

Code: Select all

WHERE p.post_text LIKE "%[img:%]%[/img:%]"
		AND p.topic_id = ' . $topic_id . '
		AND t.topic_id = ' . $topic_id . '
And in viewtopic:

Code: Select all

// 4seven / Last X [img] on Forum / 2010
include_once($phpbb_root_path . 'includes/last_x_img_on_forum.' . $phpEx);	
// 4seven / Last X [img] on Forum / 2010
But nothing appears
There is a solution?
Tks in advance
lustucrus
Registered User
Posts: 45
Joined: Tue Dec 06, 2011 12:39 pm

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by lustucrus »

lustucrus wrote:Thank's for your help, i find it, but i need to autorised 'can view post details' in global Moderator permission ....

This is normal ??? because i dont want this option for all user.

thank's for work
sorry it's a bug with my config.php file i have delete 5 blank line after ' ?> ' and all it's work now !

thank for your time ^^
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

Poulg wrote:But nothing appears
seems, that this is not mod related, so fopen() is missing or you made a customized version.
Current Mods | Mod Base | php(BB) programming | No help via PM
Poulg
Registered User
Posts: 99
Joined: Sat May 07, 2011 5:17 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by Poulg »

I had fopen() in viewtopic:

Code: Select all

// 4seven / Last X [img] on Forum / 2010
function url_exists($url) {
$handle = @fopen($url, "r");
if ($handle === false){
return false;
fclose($handle);}
else{
return true;
fclose($handle);}}
// 4seven / Last X [img] on Forum / 2010
after:

Code: Select all

include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
I don't understand,
I only made the modification which I spoke to you
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

Poulg wrote:I only made the modification which I spoke to you
Which modification? You want to install Last X [img] on Forum v.0.0.2?
This topic is for supporting this mod. If not, what do you want to do instead?
Current Mods | Mod Base | php(BB) programming | No help via PM
Poulg
Registered User
Posts: 99
Joined: Sat May 07, 2011 5:17 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by Poulg »

I only want to display in viewtopic the x last img of this topic, it's not so far as this mod, and as your other mod last X att in viewtopic
But if you don't want to help me, it's not a problem, I am only asking, that's all
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

Now i know what you mean. I've made some times ago the same for [attachment]
http://www.4seven.de/forum/media/viewto ... f=13&t=219 (unofficial [dev] version)
So i will see, that i find this version for [img]. I should have this anywhere in my backups.
May it takes some days to write instruction etc..
Current Mods | Mod Base | php(BB) programming | No help via PM
Poulg
Registered User
Posts: 99
Joined: Sat May 07, 2011 5:17 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by Poulg »

thanks ;)
Poulg
Registered User
Posts: 99
Joined: Sat May 07, 2011 5:17 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by Poulg »

Hi,

How many days for last x img in topic? Just for know

tks
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by 4_seven »

I have less time these weeks, so it takes a time yet..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
aurquiel
Registered User
Posts: 243
Joined: Fri May 15, 2009 1:45 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by aurquiel »

I is possible exclude small images like 80x40 px o something like that?

Or only the first image of the topic?

This two solutions works for me "espeaclly" only the first image of the topic.
donfrankos wrote:I did a dirty fix myself for now:

for anybody who wants to show only 1 image per post:

search for

Code: Select all

foreach ($current_posted_img[2] as $current_file_img){
then add on the line BEFORE:

Code: Select all

$MaxPicsPerPost = 1;
$i=0;
add on the line AFTER:

Code: Select all

if(++$i > $MaxPicsPerPost) break;
you can change the value of $MaxPicsPerPost to the amount of pictures you want to show per post

srry for messing around in your code, hope you won't be offended by it

regards
Frank
What file??? ----------:?:

Add before two lines in the line??
Thanks
User avatar
aurquiel
Registered User
Posts: 243
Joined: Fri May 15, 2009 1:45 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by aurquiel »

Resolved....thanks anyway. :D
User avatar
aurquiel
Registered User
Posts: 243
Joined: Fri May 15, 2009 1:45 am

Re: [DEV] Last X [img] on Forum v.0.0.2

Post by aurquiel »

I have a question if i wanna display only in index?

Return to “[3.0.x] Abandoned MODs”