Page 1 of 2

"admin added" in description

Posted: Tue Jul 14, 2015 4:44 am
by italkcafe
Hello,

When I use 'import set' for redtube, it puts 'admin added' in description field. Is there anyway to stop this?

Thanks,

Re: "admin added" in description

Posted: Tue Jul 14, 2015 6:01 am
by admin
Yes, add 'description' in import set and it will add it

Re: "admin added" in description

Posted: Tue Jul 14, 2015 2:06 pm
by italkcafe
there is no description field in redtube export, how can we include/set it?

Re: "admin added" in description

Posted: Tue Jul 14, 2015 2:11 pm
by admin
Is there's no descrioption in the feed what are you going to add ?

Re: "admin added" in description

Posted: Tue Jul 14, 2015 2:41 pm
by italkcafe
I just want to keep it blank, without "admin added" text.

Re: "admin added" in description

Posted: Tue Jul 14, 2015 2:42 pm
by admin
We need at least something to create slugs
You can replace this text in rotation settings

Re: "admin added" in description

Posted: Wed Jul 15, 2015 2:22 am
by italkcafe
I created replacement in import set but it didn't work (maybe it couldn't search for 'admin added' in description to do the replacement).

I've changed the template as below as a workaround:

From:
<h2><!--DESCRIPTION--></h2>

To:
<h2><?php echo str_replace($item['description'],'admin added',''); ?></h2>

Re: "admin added" in description

Posted: Wed Jul 15, 2015 2:34 am
by admin
1. Import Replacements don't affect existing galleries
2. this won't always work as the script does not load $item variable for cached pages

I think a good approach here is to

1. replace existing 'admin added' in DB or list thumbs- massedit
2. change rotation settings

Re: "admin added" in description

Posted: Wed Jul 15, 2015 2:53 am
by italkcafe
On 13 July I mass edited all the description. Then added replacement as below:

=> If in description has 'admin added' then search for 'admin added' in description and replaced it by '' (blank).

On 14 July, all new imported thumbs still have 'admin added' in description. So the replacement obviously does not work.

Re: "admin added" in description

Posted: Wed Jul 15, 2015 3:06 am
by admin
Did you change rotation - settings

<b>Empty Desc Replacement</b><br>
New rotation uses mod_rewrite. To ensure everything's ok all galleries must have description.<br>
If galleries don't have description script will replace it with following text.


?