[ABD] dgTopic Thumbs (0.1.1)

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.
Locked
polyvore
Registered User
Posts: 22
Joined: Fri Jul 25, 2008 8:24 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by polyvore »

HMmm, i overwrote the functions upload with a backed up copy and redid it, and i think the error has gone.

So For now its 100% bug free for me.
User avatar
darkoo
Registered User
Posts: 174
Joined: Thu Sep 07, 2006 5:32 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by darkoo »

Here is the solution for the avatar problem:
Open includes/function_upload.php
Find:

Code: Select all

		// dgTopic Thumb MOD - Added -->	
		global $auth, $user, $config, $db, $cache, $forums, $mode;
		global $phpbb_root_path, $phpEx;		
		
		$forum_id = $_GET['f'];
		$sql = 'SELECT forum_topics_thumb_choice
			FROM ' . FORUMS_TABLE . 
			' WHERE forum_id = ' . $forum_id;
		$result = $db->sql_query_limit($sql, 1);
		$topic_thumb_choice = (int) $db->sql_fetchfield('forum_topics_thumb_choice');
		$db->sql_freeresult($result);
		
		
		$sql = 'SELECT `config_value` FROM `' . CONFIG_TABLE . '` WHERE `config_name`= \'tthumb_req_upload_width\' LIMIT 1'; 
		$result = $db->sql_query($sql);
		$tthumb_req_upload_width = $db->sql_fetchfield('config_value');
		$db->sql_freeresult($result);
		
		$sql = 'SELECT `config_value` FROM `' . CONFIG_TABLE . '` WHERE `config_name`= \'tthumb_req_upload_height\' LIMIT 1'; 
		$result = $db->sql_query($sql);
		$tthumb_req_upload_height = $db->sql_fetchfield('config_value');
		$db->sql_freeresult($result);			
		// dgTopic Thumb MOD - END -->	
Replace Width:

Code: Select all

		// dgTopic Thumb MOD - Added -->	
		global $auth, $user, $config, $db, $cache, $forums, $mode;
		global $phpbb_root_path, $phpEx;		
		
		$forum_id = $_GET['f'];
		if(!$forum_id == '')
		{
			$sql = 'SELECT forum_topics_thumb_choice
				FROM ' . FORUMS_TABLE . 
				' WHERE forum_id = ' . $forum_id;
			$result = $db->sql_query_limit($sql, 1);
			$topic_thumb_choice = (int) $db->sql_fetchfield('forum_topics_thumb_choice');
			$db->sql_freeresult($result);
			
			
			$sql = 'SELECT `config_value` FROM `' . CONFIG_TABLE . '` WHERE `config_name`= \'tthumb_req_upload_width\' LIMIT 1'; 
			$result = $db->sql_query($sql);
			$tthumb_req_upload_width = $db->sql_fetchfield('config_value');
			$db->sql_freeresult($result);
			
			$sql = 'SELECT `config_value` FROM `' . CONFIG_TABLE . '` WHERE `config_name`= \'tthumb_req_upload_height\' LIMIT 1'; 
			$result = $db->sql_query($sql);
			$tthumb_req_upload_height = $db->sql_fetchfield('config_value');
			$db->sql_freeresult($result);	
		}		
		// dgTopic Thumb MOD - END -->	
polyvore
Registered User
Posts: 22
Joined: Fri Jul 25, 2008 8:24 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by polyvore »

Worked perfect on the old version that wasn't uploading, thanks heaps!

Just while i have been re-uploading images to the forum today to get them loading up ive noticed some just topics just won't load.
So far 100% of new threads load up the image but rarely, id say 5% of the time a thumbnail wont generate
It just stays as the black background.
I'll keep trying to narrow down what it could be and get back to you.

So far everyone is loving the mod, we are either the second or third people in phpbb land to have topic thumbs :D
User avatar
darkoo
Registered User
Posts: 174
Joined: Thu Sep 07, 2006 5:32 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by darkoo »

Nice m8! It sounds really great! Send me a link to your homepage would love to see the activity changes.. :)
User avatar
polkadotcat
Registered User
Posts: 53
Joined: Thu Jun 23, 2005 11:11 pm
Contact:

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by polkadotcat »

I'm sure you have made a LOT of people happy with this one!!

Could you please consider adding the thumbnails to search results as well, as a feature?

Thanks for this :D
I'm just a girl in the world...
polkadotcat's wee world...
polyvore
Registered User
Posts: 22
Joined: Fri Jul 25, 2008 8:24 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by polyvore »

Hey guys, figured out a little solve for my problem with some threads (5%) not updating Topic Thumbnails on re-upload.
Simply Copy the thread as a moderatorand delete the old and it will fix it.

Cheers,

Grant.
Digital.gr
Registered User
Posts: 3
Joined: Wed Aug 20, 2008 2:59 am

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by Digital.gr »

I cant see the forum "ADDED" bit in admin area as you stated in your site image bellow:

Your Image Here


Any help with this 1 please?



Thank you for yout time! Great MOD! :lol:
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by Peter77sx »

Why was the watermark mod removed?
Digital.gr
Registered User
Posts: 3
Joined: Wed Aug 20, 2008 2:59 am

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by Digital.gr »

Digital.gr wrote:I cant see the forum "ADDED" bit in admin area as you stated in your site image bellow:

Your Image Here


Any help with this 1 please?



Thank you for you time! Great MOD! :lol:
Disregard the above comment. I purged the forums and now showing up! :p


Thank you!
User avatar
darkoo
Registered User
Posts: 174
Joined: Thu Sep 07, 2006 5:32 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by darkoo »

Peter77sx wrote:Why was the watermark mod removed?
Because the watermark mod was not really made by me, only added and "minorly" edited by me.
polyvore
Registered User
Posts: 22
Joined: Fri Jul 25, 2008 8:24 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by polyvore »

Hey Darkoo,
Things running smooth still, i just have a question, is there a way to have a better quality of thumbnail ie less pixelation that i can incorporate manually?
i have the TS_Gallery mod installed and it provides options for thumbnail quality, i don't need those options but maybe there is a way to do it in the code itself?
Will have a look through the mod see if i can see anything myself and get back if i find a way.

/.G
User avatar
darkoo
Registered User
Posts: 174
Joined: Thu Sep 07, 2006 5:32 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by darkoo »

No I´m afraid not polyvore, thats the best quality possible. The dgTopic Thumb resizing function uses the same method as the phpbb resizing function. I´ts essentially the same function used for both.
Digital.gr
Registered User
Posts: 3
Joined: Wed Aug 20, 2008 2:59 am

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by Digital.gr »

You think you can do this mod working with IPB for a small donation to you?


Thank you
User avatar
darkoo
Registered User
Posts: 174
Joined: Thu Sep 07, 2006 5:32 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by darkoo »

Digital.gr wrote:You think you can do this mod working with IPB for a small donation to you?
Sorry m8! I don´t have enough time on my hands to do something like that anymore... school has started and this mod will be the only mod that I will concern myself with.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [DEV] dgTopic Thumbs (0.1.0)

Post by Peter77sx »

Nice idea this MOD is. thanks!

darkoo wrote:
Peter77sx wrote:Why was the watermark mod removed?
Because the watermark mod was not really made by me, only added and "minorly" edited by me.
Ah, I see. :)
Locked

Return to “[3.0.x] Abandoned MODs”